SVG Radial Gradients

A radial gradient radiates colors outward from a central point. Like the glow of a light bulb or a sphere lit from one side. It's defined and used in exactly the same way as a linear gradient.

The radialGradient Element

Instead of a direction vector, radial gradients are controlled by a center point and radius:

Color stops work identically to linearGradient:

Example: A Glowing Circle

View Output

The stop-opacity="0" on the outer stop makes the gradient fade to transparent at the edges, creating a soft glowing effect rather than a hard cutoff.

Linear vs. Radial Gradients

Feature linearGradient radialGradient
Direction Along a straight line vector Outward from a center point
Best for Backgrounds, buttons, bars Orbs, glows, sphere lighting
Key attrs x1 y1 x2 y2 cx cy r fx fy