You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filling large areas with the bucket-fill tool is slow when there are a lot of pixels. Currently, each pixel is filled individually:
c.beginPath();
c.fillStyle = pixelColor;
c.fillRect(x, y, pixelLength, pixelLength);
c.fill();
This can likely be sped up by first getting all pixels that need to be filled that are touching each other in a line and filling them all at once, and going up/down from there to check for more lines of pixels or individual pixels to fill.
The text was updated successfully, but these errors were encountered:
Filling large areas with the bucket-fill tool is slow when there are a lot of pixels. Currently, each pixel is filled individually:
This can likely be sped up by first getting all pixels that need to be filled that are touching each other in a line and filling them all at once, and going up/down from there to check for more lines of pixels or individual pixels to fill.
The text was updated successfully, but these errors were encountered: