File:Ellipse gradient.svg

Uploaded by Sarang
Upload date 2016-12-11T10:03:08Z
MIME type image/svg+xml
Dimensions 400 × 150 px
File size 300 B

Summary

Licensing

Description
English: Linear gradient example
Date
Source https://www.w3schools.com/graphics/svg_grad_linear.asp
Author Sarang
SVG development
InfoField
 The SVG code is valid.
 This vector image was created with a text editor.
Source code
InfoField

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>
Public domain 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.
Heptagon
Heptagon

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

11 December 2016

300 byte

image/svg+xml

9ad9e4c4c901eb870c7d4c0dc16dacb8eb297250

Category:PD shape Category:SVG example images Category:SVG simplification by gradienting Category:Valid SVG created with Text Editor