Monthly Archive April 2020
- 2020/04/22 - Limiting input type=”color” to a certain palette (from an image) "Restrict input type=color to a preset palette using a datalist, then extract every colour of an uploaded image with canvas and a Web Worker to fill it."
- 2020/04/17 - The joy of pixeling and building pixel tools with HTML5 canvas and JavaScript "A love letter to Commodore 64 pixel art and three open source canvas tools built for it: a C64 colour changer, the TileEdit tile painter and Logo-O-Matic."
- 2020/04/02 - Quick solution - getting the mouse position on an element regardless of positioning "A compact replacement for layerX and layerY: subtract getBoundingClientRect() from clientX and clientY to get the mouse position on any element."