GlowOptions
import type { GlowOptions } from 'pixi-silk/glow';
Options of Glow.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
center? | [number, number] | Point in local units that each pass scales around. Default [0, 0]. | glow/Glow.ts:35 |
draw | (g: SilkGraphics) => void | Adds the shape to g without a fill or stroke call, for example (g) => g.circle(0, 0, 40). It runs once per pass on every redraw, with the pass transform already set. | glow/Glow.ts:31 |
layers | GlowLayer[] | Passes, back to front. See neon for a ready recipe. An empty array draws nothing. | glow/Glow.ts:33 |