Skip to content

pixi-hm05 (player) / pixi-hm05 / gradientReach

Function: gradientReach() ​

ts
function gradientReach(g, points): number;

How far (in unit radii) the shape's points reach from the gradient's centre: a reflecting radial gradient is drawn that far (pad: 1 — the clamped edge is already the last colour).

Parameters ​

ParameterType
gGradientSpec
pointsIterable<{ x: number; y: number; }>

Returns ​

number

HereSplash — 2D animation for the web