kittsville / pride-flag-generator

Procedurally generates an infinite number of pride flags
https://myflag.lgbt
MIT License
1 stars 2 forks source link

Clipping masks #13

Open kittsville opened 4 years ago

kittsville commented 4 years ago

I would like to support clipping masks to extend the variety of rendered flags. While there are none in the flag spreadsheet (see #10) which use this it seemed like an interesting idea.

It also turns out to be really easy. By very hackily combining ctx.clip(); (docs) with recursive flag rendering I produced this (godawfully ugly) prototype: Philly pride flag except each left-hand arrow is a common pride flag

kittsville commented 4 years ago

I left the code on a branch for future reference.