javascript - Canvas overlapping elements -
i have canvas animation redraws exact same element on (it long story why necessary) happens, , happens enough.
now assumed drawing element (using context path , stroke method) on existing exact replica of image should nothing @ animation. instead draws on past image , blurs sides (as if didn't draw @ same location.
please let me know if there way fix this
thanks
this happening because canvas strokes anti-aliased. in practical sense you're drawing semi-opaque pixels on other semi-opaque pixels, , pixels overlaid opacities added together. don't think can (currently) force canvas object turn off anti-aliasing on strokes, may have live it. big of problem?
http://img813.imageshack.us/img813/303/canvasl.png
edit: guess try using pngs transparent backgrounds markers, instead of drawing them strokes. https://developer.mozilla.org/en/canvas_tutorial/using_images
Comments
Post a Comment