Skip to content

textmode.js / layering / TextmodeLayer / blendMode

Method: blendMode()

ts
blendMode(mode?): void | LayerBlendMode;

Set or get this layer's blend mode.

Pass a LayerBlendMode constant (e.g. t.BLEND_ADDITIVE) or a legacy string (e.g. 'additive' — deprecated).

Parameters

ParameterTypeDescription
mode?string | LayerBlendModeBlend mode to apply.

Returns

void | LayerBlendMode

Current blend mode as a numeric LayerBlendMode when called without arguments.

Example