Skip to content

1681-engine / pixel / PixelMarksOptions

Interface: PixelMarksOptions<T> ​

Defined in: src/pixel/PixelMarks.ts:13

Type Parameters ​

Type Parameter
T extends string

Properties ​

creep? ​

ts
optional creep?: number;

Defined in: src/pixel/PixelMarks.ts:23

How fast the chevrons creep along a line, px per ms (default 0.02), so it reads as a direction.


depth? ​

ts
optional depth?: number;

Defined in: src/pixel/PixelMarks.ts:17

Depth of every mark (default 0): usually just over the effects that lie on the ground.


fillAlpha? ​

ts
optional fillAlpha?: number;

Defined in: src/pixel/PixelMarks.ts:25

Opacity of a disc's fill (default 0.28).


headings? ​

ts
optional headings?: number;

Defined in: src/pixel/PixelMarks.ts:19

Headings a chevron is painted for (default 32, 11.25° apart): each is painted once per size and tone.


spacing? ​

ts
optional spacing?: number;

Defined in: src/pixel/PixelMarks.ts:21

World pixels between two chevrons of an aim line (default 10).


tones ​

ts
tones: Record<T, MarkTone>;

Defined in: src/pixel/PixelMarks.ts:15

The looks marks are drawn in, by name (aim, cancel, lock…); every mark names one.

Released under the MIT License.