Drawing overlapping circles with alpha channeling

前端 未结 2 481
别那么骄傲
别那么骄傲 2021-01-24 13:41

This question has sort of been answered here: Combined area of overlapping circles

My problem is more specific though. I have an arbitrary number of arbitrarily sized ci

2条回答
  •  无人共我
    2021-01-24 14:37

    You must use a library like RaphaelJS. It is capable of more than what you ask for here.

    Edit: You can apply alpha transparency through js by programmatically determining the distance between centres (D) and comparing it with the sum of the radii (S). If D < S, then they overlap so take care of red circles.

    (http://raphaeljs.com/)

提交回复
热议问题