Skip to content
pixi-silk
GitHub repository
Interface

GlowLayer

import type { GlowLayer } from 'pixi-silk/glow';

One pass of a Glow: the same shape filled or stroked once more, optionally blurred, scaled and blended additively. Stack a few and a flat shape starts to emit light.

Properties#

PropertyTypeDescriptionDefined in
alpha?numberOpacity of the whole pass, 0 to 1. Default 1.glow/Glow.ts:22
blend?BLEND_MODESBlend mode of the pass. add sums light, so overlaps burn towards white. Default normal.glow/Glow.ts:14
fill?FillInputFill of this pass: colour, gradient, alpha and blur, as in SilkGraphics.fill. Left out, the pass is not filled.glow/Glow.ts:10
scale?numberScale of the pass around GlowOptions.center. Default 1.glow/Glow.ts:16
stroke?StrokeInputStroke of this pass, as in SilkGraphics.stroke. Left out, the pass is not stroked.glow/Glow.ts:12
x?numberHorizontal offset of the pass in local units. Default 0.glow/Glow.ts:18
y?numberVertical offset of the pass in local units. Default 0.glow/Glow.ts:20