block by HarryStevens e9431103a6814bf8bddb82f82873935b

Fun with Linear Gradients II

Full Screen

This block uses SVG’s linearGradient element and D3 selections to create a linear gradient. Rather than having just two colors, this gradient uses a six-color rainbow spectrum.

Drag the circles to change the gradient’s orientation.

index.html