Skip to content

1681-engine / pixel / pixelPaint / blob

Function: blob() ​

ts
function blob(
   g, 
   x, 
   y, 
   r, 
   color, 
   flat?
): void;

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

A filled stepped disc of radius r (smoke, gas, puddles), in the ground's 2:1 perspective when flat.

Parameters ​

ParameterTypeDefault value
gGraphicsundefined
xnumberundefined
ynumberundefined
rnumberundefined
colornumberundefined
flatbooleanfalse

Returns ​

void

Released under the MIT License.