Clearing a 'context' without clearing other contexts that overlap

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by tan lux on 14th February 2014
hello,

I hope someone can answer this. I'm writing a 'space invaders' game using only images created by canvas (to use as a demo for my work) and I want to be able to clear different canvas images on the same screen area by rendering them in different 'contexts' and using different 'contextX.clearRect(x,y,x,y)' commands.

Is this possible? At the moment all that happens is the 'contextX.clearRect(x,y,x,y)' clears EVERY context in that given rectangle!!!!!!!!
Posted by Richard on 14th February 2014
Hi there,

This forum is just for RGraph - not general canvas issues.



Richard

Add a reply




« Back to message list