ZVON > Graphotron > Graphotron VCG
| graphotron | daVinci | >> vcg << | dot | tutorial | download | about |

Namespace: http://zvon.org/graphotron/vcg
Element: color
Description: the color of the edge. Colors are black, blue, red, green, yellow, magenta, cyan, white, darkgrey, darkblue, darkred, darkgreen, darkyellow, darkmagenta, darkcyan, gold, lightgrey, lightblue, lightred, lightgreen, lightyellow, lightmagenta, lightcyan, lilac, turquoise, aquamarine, khaki, purple, yellowgreen, pink, orange and orchid. If more than these default colors are needed, a color map with maximal 256 entries can be used. The first 32 entries correspond to the colors just listed. A color of the color map can selected by the color map index, an integer, for instance red has index 2, green has index 3, etc.
Values: aquamarine, black, blue, cyan, darkblue, darkcyan, darkgreen, darkgrey, darkmagenta, darkred, darkyellow, gold, green, khaki, lightblue, lightcyan, lightgreen, lightgrey, lightmagenta, lightred, lightyellow, lilac, magenta, orange, orchid, pink, purple, red, turquoise, white, yellow, yellowgreen, integer

Graph screenshot

XML Source

<source>
     <START1/>
     <END1/>
     <START2/>
     <END2/>
     <START3/>
     <END3/>
     <START4/>
     <END4/>
</source>
Graphotron Source

<graphotron xmlns:vcg="http://zvon.org/graphotron/vcg" xmlns="http://zvon.org/graphotron" >
     <vertex match="/*/*">
          <name select="name()"/>
     </vertex>
     <edge match="/*/START1" select="/*/END1">
          <vcg:color>red</vcg:color>
     </edge>
     <edge match="/*/START2" select="/*/END2">
          <vcg:color>blue</vcg:color>
     </edge>
     <edge match="/*/START3" select="/*/END3">
          <vcg:color>orchid</vcg:color>
     </edge>
     <edge match="/*/START4" select="/*/END4"> </edge>
</graphotron>



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet