Skip to content
pixi-silk
GitHub repository
Function

drop

import { drop } from 'pixi-silk/glow';
function drop(
   g: SilkGraphics, 
   cx: number, 
   cy: number, 
   r: number, 
   tip?: number
): SilkGraphics;

Adds a drop with its tip up as one closed path and returns g. It is a circle of radius r around (cx, cy), pulled into a point tip above the centre (default 1.6 * r).

Parameters#

ParameterType
gSilkGraphics
cxnumber
cynumber
rnumber
tipnumber

Returns#

SilkGraphics