HTML5 Canvas eraser -



HTML5 Canvas eraser -

there's way of implementing eraser (other using white pencil?).

i'm using layering, have image below canvas, so, if eraser paints white, user going notice since below image isn't solid white.

basically, set globalcompositeoperation copy , paint using color opacity zero, e.g. "rgba(0,0,0,0)" trying.

the question answered in bit more detail here:

http://stackoverflow.com/questions/3328906/erasing-in-html5-canvas

html5 canvas

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -