I am using draw2dimg to draw things on a transparent html5 canvas, and current implementation of ClearRect uses draw.Over operation, which is unable to clear image to a fully transparent state. I suggest using draw.Src, as it allows users to clear area with transparent pixels. IMO, for transparent images this behaviour is somewhat intuitive.
Also, this behaviour would not break existing behaviour for fully opaque clear operations.
Hello!
I am using draw2dimg to draw things on a transparent html5 canvas, and current implementation of ClearRect uses draw.Over operation, which is unable to clear image to a fully transparent state. I suggest using draw.Src, as it allows users to clear area with transparent pixels. IMO, for transparent images this behaviour is somewhat intuitive. Also, this behaviour would not break existing behaviour for fully opaque clear operations.