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

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

To define radial gradients, use the <radialGradient> tag. It has these attributes:

Note:
A <linearGradient> tag can reference only linear gradients, and a <radialGradient> tag only radial gradients.

The figure shows variations of radial gradients. Labels give the special settings used. The circle indicates the outer ring defined by cx, cy and r; the dot indicates the focus defined by fx/fy.

Different radial gradient variants

Figure: Different radial gradient variants.

   

 

 

 

back to top