viliusle / miniPaint

online image editor
http://viliusle.github.io/miniPaint/
Other
2.59k stars 602 forks source link

Drawing on a Single Layer #373

Open RageGamerBoi opened 11 months ago

RageGamerBoi commented 11 months ago

Is it possible to allow drawing on a single layer by:

  1. completing a brush stroke
  2. automatically converting the layer to raster
  3. merging it down on to the currently selected layer?

This would be incredibly helpful as a supplement to the current drawing functions as it currently is a mess to draw with all the new layers (and then when you have to erase something it’s even worse). Thanks :)

viliusle commented 11 months ago

Not yet, but this is good idea to merge all brushes and make it raster after mouse release. Of course saved file size would be bigger, more memory for undo. But erase would be easier and less layers.

Giwayume commented 4 months ago

It's possible to make a vector eraser by doing segment/quadratic intersections and splitting the paths. The math isn't that hard.