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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -