Skip to content

1681-engine / pixel / pixelTone / batchFor

Function: batchFor() ​

ts
function batchFor(g): 
  | Map<number, number>
  | PixelLayer
  | null;

Defined in: src/pixel/pixelTone.ts:203

Where a solid pixel painted on g goes while its batch is open: the layer's staging, the batch's map, or nowhere (paint it now). stagePixel writes into whichever it is.

Parameters ​

ParameterType
gGraphics

Returns ​

| Map<number, number> | PixelLayer | null

Released under the MIT License.