vector - How to achieve 'donut holes' with paths in Raphael -


I would like to attract the shape in which it may have holes, like I fill it Give shape and do not keep holes filled with that color (leave them transparent). According to

:

The compound path (i.e., a path along many episodes) is possible that objects like "donut hole" are allowed.

Can anyone give a very easy example to do this with a vector path?

Thank you very much.

If you know the trick then it will be quite straightforward. For example:

  paper. ("50 50 50 50 150 L 150 150 150 150 150" + 75 75 75 75 75 75 125 125 125 125) Atter ("Filling", "#FAF");  

but *:

  paper. ("M 50 50 L50 150 L 150 150 150 150 150 150 150 x 150", "7575", "75"; The difference is that in order to reveal the path within the donut, it should be  the upper boundaries drawn in reverse order  by the outer path (i.e. drag a clockwise ), Other anti-clockwise). 

(*) At least, it works in Chrome, Opera and Firefox 4.0 Beta, but not in 3.6


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -