开发者

RaphaelJS library to find intersections of paths

开发者 https://www.devze.com 2023-04-11 18:32 出处:网络
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 fo

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

精彩评论

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