@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / UiPattern
Type Alias: UiPattern ​
ts
type UiPattern = {
kind: "scanlines" | "grid" | "dots" | "stripes" | "noise";
color: string;
spacing?: number;
width?: number;
angle?: number;
};Defined in: ui/uiStyle.ts:38
A texture laid over a surface's fill, inside its shape: the scanlines of a terminal, the grid of a holo-table, a paper grain. Spacing and width are metres; angle turns stripes, in degrees.
Properties ​
| Property | Type | Defined in |
|---|---|---|
kind | "scanlines" | "grid" | "dots" | "stripes" | "noise" | ui/uiStyle.ts:39 |
color | string | ui/uiStyle.ts:40 |
spacing? | number | ui/uiStyle.ts:41 |
width? | number | ui/uiStyle.ts:42 |
angle? | number | ui/uiStyle.ts:43 |

