MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / continueDrawingQueue

Function continueDrawingQueue

source/draw.js:142–156  ·  view source on GitHub ↗
(context, queue)

Source from the content-addressed store, hash-verified

140
141// export const DRAW_COUNT = 2_000;
142export const continueDrawingQueue = (context, queue) => {
143 // If the draw queue is empty, that means we've drawn everything already :)
144 if (queue.isEmpty) {
145 return;
146 }
147
148 const drawCount = window.debugCorners ? 2_000 : 4_000;
149 let i = 0;
150 while (!queue.isEmpty) {
151 if (i >= drawCount) break;
152 const screen = queue.shift();
153 drawBorder(context, screen);
154 i += addChildrenToQueue(queue, screen);
155 }
156};

Callers 1

main.jsFile · 0.90

Calls 3

drawBorderFunction · 0.85
addChildrenToQueueFunction · 0.85
shiftMethod · 0.80

Tested by

no test coverage detected