Difference between revisions of "Wgraph:Demo icon"

From FollowTheScore
Jump to: navigation, search
(New page: * Formats allowed are png, bmp, gif * you must set icon_colors to 256 * icon files must be in images/Wgraph/icons {{#wgraph:png|wgl|gdl| icon_colors 256 icons yes node Bus {labe...)
 
 
Line 1: Line 1:
* Formats allowed are png, bmp, gif
+
* Formats allowed are png, pbm, ppm
* you must set icon_colors to 256
+
* you should set icon_colors to 256
 
* icon files must be in images/Wgraph/icons
 
* icon files must be in images/Wgraph/icons
{{#wgraph:png|wgl|gdl|
+
* but svg output only will find the icons if they are also present in the same directory as the svg file itself.
 +
* note that U1 is hidden by B and/or C
 +
{{#wgraph:png|svg|thumb=60|wgl|
 
   icon_colors 256
 
   icon_colors 256
 
   icons yes
 
   icons yes
   node Bus      {label hallo icon bus.png}
+
   node A    {align left icon bus.png}
   node user.png {label helle icon user.png}
+
   node B    {align left icon bus.png width 500 }
   node user.gif {label hukku icon user.gif}
+
  node C    {align left icon bus.png width 50  }
   nodetype * {borderstyle solid bordercolor black color yellow}
+
  node U1  {}
 +
   node U2  {label "" icon user.png}
 +
  edge B U2 {}
 +
   nodetype * {borderstyle solid bordercolor black color blue}
 
}}
 
}}

Latest revision as of 19:16, 21 October 2007

  • Formats allowed are png, pbm, ppm
  • you should set icon_colors to 256
  • icon files must be in images/Wgraph/icons
  • but svg output only will find the icons if they are also present in the same directory as the svg file itself.
  • note that U1 is hidden by B and/or C

{{#wgraph:png|svg|thumb=60|wgl|

 icon_colors 256
 icons yes
 node A    {align left icon bus.png}
 node B    {align left icon bus.png width 500 }
 node C    {align left icon bus.png width 50  }
 node U1   {}
 node U2   {label "" icon user.png}
 edge B U2 {}
 nodetype * {borderstyle solid bordercolor black color blue}

}}