File:Ellipse gradient.svg
Summary
Licensing
| Description |
English: Linear gradient example |
| Date | |
| Source | http://www.w3schools.com/graphics/svg_grad_linear.asp |
| Author | Sarang |
| SVG development | |
| Source code | Xml<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="150">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>
</defs>
<ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
</svg>
Simplified code<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="150">
<linearGradient id="g">
<stop offset="0" stop-color="#FF0"/>
<stop offset="1" stop-color="#F00"/>
</linearGradient>
<ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#g)"/>
</svg>
|
| This image of simple geometry is ineligible for copyright and therefore in the public domain, because it consists entirely of information that is common property and contains no original authorship. |
