codse / pixcell

A pixel art creator made for fun.
https://pixcell.vercel.app/
MIT License
31 stars 0 forks source link

Support erasing using drag #1

Open hari opened 2 months ago

hari commented 2 months ago

Currently, drag supports filling only. We need to implement erasing as well. We can do this using one of the following methods:

  1. Use the action on the first pixel i.e. if the first pixel was filled the dragging fills and vice-versa.
  2. Alternatively, we can use the dedicated mode option to fill or erase.
huuphongsan commented 2 months ago

Or we should have Undo or Redo button.