(context, queue)
| 140 | |
| 141 | // export const DRAW_COUNT = 2_000; |
| 142 | export 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 | }; |
no test coverage detected