Permalink
Browse files

Added a bunch of color definitions, using a subset of Michael Kennedy…

  • Loading branch information...
1 parent 8ef7694 commit bfa1e918063576e04f2c163310c87f3e0073a530 @vidarh committed May 9, 2009
Showing with 181 additions and 16 deletions.
  1. +170 −5 notugly.xsl
  2. +11 −11 tests/test.dot
View
@@ -22,14 +22,179 @@
<stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
</linearGradient>
- <linearGradient id="lightgrey" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
- <stop offset="100%" style="stop-color:rgb(128,128,128);stop-opacity:1"/>
+ <linearGradient id="aquamarine" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(127,255,212);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="azure" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(240,255,255);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="blue" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(0,0,255);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="blueviolet" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(138,43,226);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="brown" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(165,42,42);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="cadetblue" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(95,158,160);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="chocolate" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(210,105,30);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="cornflowerblue" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(100,149,237);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="crimson" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(220,20,60);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="cyan" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(0,255,255);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="darkgreen" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(0,100,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="darkorange" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,140,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="gold" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,215,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="gray" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(192,192,192);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="greenyellow" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(173,255,47);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="green" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(0,255,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="grey" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(192,192,192);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="hotpink" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,105,180);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="indianred" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(205,92,92);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="indigo" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(75,0,130);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="lavender" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(230,230,250);stop-opacity:1"/>
</linearGradient>
<linearGradient id="lightblue" x1="0%" y1="0%" x2="100%" y2="100%">
- <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
- <stop offset="100%" style="stop-color:rgb(128,128,255);stop-opacity:1"/>
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(173,216,230);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="lightgray" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(211,211,211);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="lightgrey" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(211,211,211);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="magenta" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,0,255);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="maroon" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(176,48,96);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="mediumblue" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(0,0,205);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="mediumpurple" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(147,112,219);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="orange" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,165,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="pink" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,192,203);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="purple" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(160,32,240);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="red" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="steelblue" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(70,130,180);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="violet" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(238,130,238);stop-opacity:1"/>
+ </linearGradient>
+
+ <linearGradient id="yellow" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:rgb(255,255,255);stop-opacity:1"/>
+ <stop offset="100%" style="stop-color:rgb(255,255,0);stop-opacity:1"/>
</linearGradient>
<linearGradient id="none" x1="0%" y1="0%" x2="100%" y2="100%">
View
@@ -2,31 +2,31 @@
digraph test {
size = "7,7";
- node [fontsize=20];
+ node [fontsize=10];
foo [ shape = box ];
- bar [ shape = box, style="filled", fillcolor="lightblue" ];
+ bar [ shape = box, style="filled", fillcolor="mediumblue" ];
baz [ shape = box, style="rounded,filled", fillcolor="white" ];
- x [ shape = box, style="filled,rounded", fillcolor="lightgreen" ];
+ x [ shape = box, style="filled,rounded", fillcolor="crimson" ];
y [ shape = polygon ];
- z [ shape = polygon, style="filled" ];
+ z [ shape = polygon, style="filled", fillcolor="aquamarine" ];
a [ shape = ellipse ];
- b [ shape = ellipse, style="filled" ];
- c [ shape = triangle ];
- d [ shape = triangle, style="filled" ];
+ b [ shape = ellipse, style="filled", label="Multi line\nLabel" ];
+ c [ shape = triangle];
+ d [ shape = triangle, style="filled", fillcolor="chocolate" ];
e [ shape = house ];
- f [ shape = house, style="filled" ];
+ f [ shape = house, style="filled", fillcolor="orange" ];
g [ shape = doublecircle ];
- h [ shape = doublecircle, style="filled" ];
+ h [ shape = doublecircle, style="filled", fillcolor="red" ];
k [ shape = Mcircle ];
- l [ shape = Mcircle, style="filled" ];
+ l [ shape = Mcircle, style="filled", fillcolor="green" ];
m [ shape = component ];
- n [ shape = component, style="filled" ];
+ n [ shape = component, style="filled", fillcolor="violet" ];
foo -> bar;
a -> b -> c;

0 comments on commit bfa1e91

Please sign in to comment.