I've been fooling around with gradients but can't seem to produce the effect I want. I'm trying to make a vector version of a bitmap graphic.
The image on the bottom is the image I'm trying to reproduce as an SVG. The image on top is what my current attempt looks like.
Here's the SVG source:
The image on the bottom is the image I'm trying to reproduce as an SVG. The image on top is what my current attempt looks like.
Here's the SVG source:
Code:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"[URL]http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd[/URL]">
<svg width="32px" height="32px" xmlns="[URL]http://www.w3.org/2000/svg[/URL]" version="1.0">
<defs>
<linearGradient id="top" x1="0%" x2="0%" y1="0%" y2="100%">
<stop offset="0%" stop-color="rgb(0,0,0)" />
<stop offset="100%" stop-color="rgb(255,255,255)" />
</linearGradient>
<linearGradient id="left" x1="0%" x2="100%" y1="0%" y2="0%">
<stop offset="0%" stop-color="rgb(255,255,255)" />
<stop offset="100%" stop-color="rgb(0,0,0)" />
</linearGradient>
<linearGradient id="bottom" x1="0%" x2="0%" y1="100%" y2="0%">
<stop offset="0%" stop-color="rgb(255,255,255)" />
<stop offset="100%" stop-color="rgb(0,0,0)" />
</linearGradient>
<linearGradient id="right" x1="100%" x2="0%" y1="0%" y2="0%">
<stop offset="0%" stop-color="rgb(255,255,255)" />
<stop offset="100%" stop-color="rgb(0,0,0)" />
</linearGradient>
</defs>
<polygon fill="url(#top)" stroke="none" points="0,0 15,15 15,16 0,31" />
<polygon fill="url(#left)" stroke="none" points="0,0 15,15 16,15 31,0" />
<polygon fill="url(#right)" stroke="none" points="0,31 15,16 16,16 31,31" />
<polygon fill="url(#bottom)" stroke="none" points="31,0 16,15 16,16 31,31" />
</svg>