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#
| Property | Type | Description | Defined in |
|---|---|---|---|
alpha? | number | Opacity of the whole pass, 0 to 1. Default 1. | glow/Glow.ts:22 |
blend? | BLEND_MODES | Blend mode of the pass. add sums light, so overlaps burn towards white. Default normal. | glow/Glow.ts:14 |
fill? | FillInput | Fill of this pass: colour, gradient, alpha and blur, as in SilkGraphics.fill. Left out, the pass is not filled. | glow/Glow.ts:10 |
scale? | number | Scale of the pass around GlowOptions.center. Default 1. | glow/Glow.ts:16 |
stroke? | StrokeInput | Stroke of this pass, as in SilkGraphics.stroke. Left out, the pass is not stroked. | glow/Glow.ts:12 |
x? | number | Horizontal offset of the pass in local units. Default 0. | glow/Glow.ts:18 |
y? | number | Vertical offset of the pass in local units. Default 0. | glow/Glow.ts:20 |