Skip to content

1681-engine / pixel / pixelPaint / dust

Function: dust() ​

ts
function dust(
   g, 
   x, 
   y, 
   t, 
   spread?, 
   color?
): void;

Defined in: src/pixel/pixelPaint.ts:269

Pale stepped dust puffs kicked up around (x, y) and settling over t 0..1.

Parameters ​

ParameterTypeDefault value
gGraphicsundefined
xnumberundefined
ynumberundefined
tnumberundefined
spreadnumber10
colornumber0xc8b89a

Returns ​

void

Released under the MIT License.