Skip to content

1681-engine / index / fillSolid

Function: fillSolid() ​

ts
function fillSolid(canvas, color?): void;

Defined in: src/core/silhouette.ts:59

Paints every opaque pixel of a canvas color (default white), keeping its alpha. Upload the texture after.

Parameters ​

ParameterTypeDefault value
canvasunknownundefined
colornumber0xffffff

Returns ​

void

Released under the MIT License.