Skip to content

1681-engine / index / BlendLayerOptions

Interface: BlendLayerOptions ​

Defined in: src/core/blendLayer.ts:5

Properties ​

blend? ​

ts
optional blend?: BLEND_MODES;

Defined in: src/core/blendLayer.ts:7

How its sprites blend (default 'add', light). Set on the container, so a sprite added needs no blend of its own.


depth? ​

ts
optional depth?: number;

Defined in: src/core/blendLayer.ts:12

Its depth among the world's children (default 999,000: over every body sorted by a y under a million px, under labels a game keeps just below 1,000,000). Applied whenever given, so the first caller need not be the one to set it.


name? ​

ts
optional name?: string;

Defined in: src/core/blendLayer.ts:14

A stage may hold several (a light layer and a shadow one): each name is its own container (default the blend's).

Released under the MIT License.