1681-engine / pixel / pixelTone / fillRuns
Function: fillRuns() ​
ts
function fillRuns(g, pixels): void;Defined in: src/pixel/pixelTone.ts:154
Lays pixels (keyed by key, each with its colour already graded) row by row, one rect for every run of one colour: the same pixels as one rect each, at a fraction of the rects (single-pixel rects ran to 5,000–9,000 a frame for one big ring or smoke, enough to be felt as lag).
Parameters ​
| Parameter | Type |
|---|---|
g | Graphics |
pixels | Map<number, number> |
Returns ​
void