开发者

RaphaelJS library to find intersections of paths

I'd like to draw shapes which are intersections of circles using RaphaëlJS. Is there a library out there to do that already? A more general SVG path library would probably work too, but my google foo is failing me.

I'd like to draw shape开发者_如何学JAVAs like these:

RaphaelJS library to find intersections of paths


SVG Compositing spec describes compositing operations (comp-op property), but they're not currently supported by any browser.

Here's an example you can try, but as of writing this it doesn't work in Chrome or Firefox. Clipping can work in some cases, but it doesn't allow to do the knock out effect.

On the other hand, canvas compositing operations are fully supported, so you can try using canvas for your game.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜