Skip to content
pixi-silk
GitHub repository
Interface

GlowOptions

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

Options of Glow.

Properties#

PropertyTypeDescriptionDefined in
center?[number, number]Point in local units that each pass scales around. Default [0, 0].glow/Glow.ts:35
draw(g: SilkGraphics) => voidAdds 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
layersGlowLayer[]Passes, back to front. See neon for a ready recipe. An empty array draws nothing.glow/Glow.ts:33