Eraser

Anyone know a way in Corona to erase pixels drawn with display.newLine() to mimic an eraser in a drawing app without erasing the background?

There is no blendmode subtract, and using white would overwrite the background.

Hmmmm you raise an interesting idea.

At the moment i cant look up Corona API’s but is it possible to store each display.newLine() in a local variable?

example: local Line[x] = display.newLine

Erase should equally be a line, so not looking to just erase a previous line.

And there is no way at a pixel level to remove part of a line that I know of since Corona still does not support pixel level control.

Hmmmm you raise an interesting idea.

At the moment i cant look up Corona API’s but is it possible to store each display.newLine() in a local variable?

example: local Line[x] = display.newLine

Erase should equally be a line, so not looking to just erase a previous line.

And there is no way at a pixel level to remove part of a line that I know of since Corona still does not support pixel level control.