phetsims / scenery

Scenery is an HTML5 scene graph.
MIT License
53 stars 12 forks source link

General clipping support in 0.2 #411

Open jonathanolson opened 9 years ago

jonathanolson commented 9 years ago

Broken right now for Canvas. Potentially use clip-path (see http://www.html5rocks.com/en/tutorials/masking/adobe/), but Canvas and SVG specific support would be good.

jonathanolson commented 9 years ago

Canvas/SVG handling of clipping is working, but DOM won't clip right now for arbitrary shapes. Looks like it may not be possible in IE at the moment, will require more investigation.