Skip to content

1681-engine / pixel / pixelPaint / debris

Function: debris() ​

ts
function debris(
   g, 
   x, 
   y, 
   count, 
   speed, 
   ms, 
   colors
): void;

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

Pixel chunks flung out of (x, y) under gravity (rock, splinters): ms after the blow.

Parameters ​

ParameterType
gGraphics
xnumber
ynumber
countnumber
speednumber
msnumber
colorsnumber[]

Returns ​

void

Released under the MIT License.