Skip to content
pixi-silk
GitHub repository
Function

neon

import { neon } from 'pixi-silk/glow';
function neon(color: ColorSource, options?: NeonOptions): GlowLayer[];

A neon glow as seven GlowLayers, back to front, for a shape about size wide. Two blooms go behind. Then come two coloured drop glows and the core, a radial gradient with a pale inner shadow. A 60% white copy on top makes the middle burn towards white. A thin blurred white outline finishes it. On a dark surface the glows blend additively.

Parameters#

ParameterType
colorColorSource
optionsNeonOptions

Returns#

GlowLayer[]