play-co / webgl-2d

Canvas2D API in WebGL
http://weare.buildingsky.net
MIT License
518 stars 117 forks source link

arc #15

Open kig opened 13 years ago

kig commented 13 years ago

arc can be done either by generating circle geometry with specified angle delta between two segments or by drawing a quad and using a fragment shader to reject pixels outside the circle (antialias by controlling opacity based on how much of a sample is inside the circle).

nickdesaulniers commented 10 years ago

Yes! If I can find time, I'd love to take a crack at this. This code was a really good read, and taught me a thing or two.