These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:11 pm Advanced search

canvas clips with holes

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

canvas clips with holes

Postby adon010 » Thu Mar 25, 2010 11:04 pm

Hi all!

Is there a way in <canvas> to make clipping regions with holes? And if no, why not?
adon010
<h6>
 
Posts: 1
Joined: Thu Mar 25, 2010 11:01 pm

Postby spmorr02 » Fri Mar 26, 2010 11:43 am

Thats a good question. I know you can do that with SVG. It would make sense that canvas would/should also have such a feature. According to the specification clip() uses the area described by the current path and follows the non-zero winding number rule which i think means that if you specify both the region and the hole then it should work
spmorr02
<h5>
 
Posts: 19
Joined: Thu Jan 21, 2010 5:37 pm
Location: Louisville, Kentucky


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests