Skip to content
pixi-silk
GitHub repository
Function

halo

import { halo } from 'pixi-silk/glow';
function halo(
   color: ColorSource, 
   size?: number, 
   rings?: number
): GlowLayer[];

A soft halo only, no core: rings additive passes of the shape (default 3), each wider and fainter, returned back to front. size (default 100) scales the blur and spread.

Parameters#

ParameterTypeDefault value
colorColorSourceundefined
sizenumber100
ringsnumber3

Returns#

GlowLayer[]