W3C home > Mailing lists > Public > www-svg@w3.org > September 2002

CLIP-RULE ATTRIBUTE SUGGESTION

From: Harmon S. Nine <hnine@netarx.com>
Date: Fri, 20 Sep 2002 10:44:01 -0400
Message-ID: <3D8B3431.1020106@netarx.com>
To: www-svg@w3.org

Could the SVG standard include a value of "negative"or "complement" for 
the clip-rule attribute? Or perhaps allow something like this to be 
specified when the clipPath is being constructed?

This "negative" or "complement" specification would take a clipPath and 
perform a bitwise complement on it, thus, for instance, changing a 
clipPath that consists of a filled-circle into a rectangle the size of 
the viewport with a circular hole in it.

Currently, the only way to obtain such a clipPath is to use a 
complicated path-element that consists of a rectangle the size of the 
viewport with other shapes inside the rectangle as part of this same 
path.  A clip-rule of "oddeven" will then give the desired result.  This 
seems overly complicated.  The method described in the above paragraph 
would be much easier.

Regards,

Harmon S. Nine
Received on Friday, 20 September 2002 10:44:38 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT