XML technologies / SVG / Filters, transformations and gradients / Gradient and pattern settings / Types of gradients / Linear gradients

(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)

Linear gradients are created with the <linearGradient> tag. It supports these attributes:

Note:
The attributes x1, x2, y1 and y2 accept both absolute and percentage values according to SVG. However, absolute values prevent SVG Viewer 2.0 from displaying the filled object, although its documentation states no restrictions for the <linearGradient> tag. Therefore use percentages only. Absolute values are accepted when the attribute gradientUnits has the value userSpaceOnUse.

   

 

 

 

back to top