pixel-editor
pixel-editor copied to clipboard
FEATURE: Rotate selection
(credit Jaman on Discord)
- Draw the selection to a headless canvas (rotated)
- Get the image data: headlessCtx.getImageData(...selectionRect)
- Trim or replace semi-transparent pixels in the image data ( replacing them with a 'similar' color from their palette would be awesome 😄, could be a checkbox option)
- Draw it