Function

blend

(blend: BlendMode): BlendComp

Sets the blend mode of a Game Object.

// light
add([
    sprite("light"),
    blend(BlendMode.Add),
]);

returns The blend comp.

since v4000.0

group Components

kaplay logo

Layer

Miscalenous