Skip to main content
100%

Radial Gradient with Stroke Dasharray

✓ Published0🌍 Public
CCurran Kelleher
Last edited Feb 10, 2020
Created on Jan 11, 2020
Forked from Radial Gradient

This example demonstrates a sunburst-like visual created by combining a radial gradient with dashed strokes. A single SVG circle uses a red-to-gold radial gradient defined in `<radialGradient>` and applies it as a stroke via `stroke="url('#myGradient')"`. The stroke is given a wide width of 5 and a `stroke-dasharray="0.2"`, producing segmented ray-like arcs radiating from the center. The SVG is sized at 960 by 960 pixels with a viewBox of 10 by 10, and the code follows the MDN radial gradient example.

AI-generated description

An example of a radial gradient with SVG.

Draws from MDN: <radialGradient> example.

Uses stroke-dasharray to create "rays of sun"!

MIT Licensed

Similar vizzes