Skip to content
pixi-silk
GitHub repository
Function

ray

import { ray } from 'pixi-silk/glow';
function ray(g: SilkGraphics, r: Ray): SilkGraphics;

Adds a tapered ray to g as one polygon and returns g. Fill it afterwards, blurred for light. One shape has no seam down its diagonal when it is blurred or translucent.

Parameters#

ParameterType
gSilkGraphics
rRay

Returns#

SilkGraphics