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 ​
| Parameter | Type | Default value |
|---|---|---|
canvas | unknown | undefined |
color | number | 0xffffff |
Returns ​
void