Added code to convert colors to #RRGGBB format

This commit is contained in:
JSCHILL1 2009-05-17 14:34:08 -05:00
parent 823c8c45e3
commit a7d2593a58
4 changed files with 250 additions and 18 deletions

View file

@ -1,11 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<linearGradient id="g1" x1="0" y1="0" x2="1" y2="0">
<stop offset="0.5" stop-color="rgb(100%, 0%, 0%)" />
<stop offset="0.5" stop-color="rgb(50.0%, 0%, .0%)" />
</linearGradient>
<solidColor id="c1" solid-color="navy"/>
<solidColor id="c1" solid-color="maroon"/>
</defs>
<rect id="rect" width="100" height="100" fill="rgb(1,2,3)" stroke="red" />
<rect id="rect" width="100" height="100" fill="rgb(15,16,17)" stroke="darkgrey" />
<circle id="circle" cx="100" cy="100" r="30" fill="url(#g1)" stroke="url(#c1)" />
<ellipse id="ellipse" cx="100" cy="100" rx="30" ry="30" style="fill:#ffffff" fill="black" />
</svg>

Before

Width:  |  Height:  |  Size: 508 B

After

Width:  |  Height:  |  Size: 520 B

Before After
Before After