main page - page initiale - hauptseite - página principal projects - projets - projekte - proyectos authors - auteurs - autoren - autores papers - exposés - berichte - papeles help - aide - hilfe - ayuda

carto:papers:svg:examples:basic:fill_rules

Fill rules on polygons

On the left you see different fills of the same shape (egg and star). These effects are possible thanks to fill rules on polygons.

These cases often apply to cartography with islands and "donuts" (the second example below shall only show the topological correctness of the graphic. Mouseover the areas and watch the status bar of the browser window.

Files used

Right-click, save ...

Technical Details

The attribute that allows this is fill-rule. It may take these values, where the first one is the default:

The appliance of these fill rules also depends on the direction of the vertices within a path. See W3C-SPEC for more detailed explanations on fill rules.




Last modified: Wednesday, 02-Apr-2003 11:17:00 CEST
© carto:net (andreas neumann & andré m. winter)
original URL for reference: http://www.carto.net/papers/svg/samples/polys.shtml