Skip to content

Documentation / spryte / BlendMode

Type Alias: BlendMode ​

BlendMode = "normal" | "add" | "multiply" | "screen" | "erase"

Defined in: backend.ts:18

How drawing combines with what's underneath. add brightens (glows, fire), multiply darkens (shadows, tinted lighting), screen lightens softly, and erase cuts alpha out of what's there (holes in a render target, masks). On a see-through target multiply follows the GPU formula, which hides drawing over fully transparent pixels where Canvas 2D shows it.