My personal favorite: <a href="http:&#x2F;&#x2F;www.danielx.net&#x2F;pixel-editor&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.danielx.net&#x2F;pixel-editor&#x2F;</a><p>Source: <a href="https:&#x2F;&#x2F;github.com&#x2F;STRd6&#x2F;pixel-editor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;STRd6&#x2F;pixel-editor&#x2F;</a><p>Let me know if you want any tips for reliable undo, Bresenham&#x27;s line algo, or flood fill.