File:SVG-Gradient.svg

Summary

Description
English: 2 linear gradients respectively of 2 and 3 colors.
Français : 2 dégradés linéaires respectivement avec 2 et 3 couleurs.
Date
Source

This file was derived from:

Author Sarang disgarbaged File:2 dégradés linéaires.svg
SVG development
InfoField
 The SVG code is valid.
Category:Valid SVG created with Text Editor code-
 This diagram was created with a text editor.
Category:SVG simplified diagrams#%209.18
 Please do not replace the simplified code of this file with a version created with Inkscape or any other graphical vector graphics editor
Category:SVG simplification by gradienting
Source code
InfoField

SVG code

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="68">
<linearGradient id="a">
 <stop offset="0" stop-color="#f0f"/>
 <stop offset="1" stop-color="#0ff"/>
</linearGradient>
<linearGradient id="b">
 <stop offset="0" stop-color="#0f0"/>
 <stop offset=".5" stop-color="#ff0"/>
 <stop offset="1" stop-color="#f00"/>
</linearGradient>
<rect fill="url(#b)" width="128" height="68"/>
<rect fill="url(#a)" width="128" height="34"/>
</svg>
Anything more is not required. It would also work without the default offset="0" but W3C would tag that an error.

Licensing

w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Category:CC-BY-3.0#SVG-Gradient.svg Category:SVG color gradient Category:Color bars
Category:CC-BY-3.0 Category:Color bars Category:Derivative versions Category:SVG color gradient Category:SVG simplification by gradienting Category:SVG simplified diagrams Category:Valid SVG created with Text Editor code-