Skip to content

Documentation / @debuffjp/core / BlendMode

Type Alias: BlendMode ​

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

Defined in: spryte/dist/backend.d.ts:14

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.