Skip to content

Instantly share code, notes, and snippets.

View bwswedberg's full-sized avatar

Brian Swedberg bwswedberg

View GitHub Profile
@bwswedberg
bwswedberg / README.md
Last active March 13, 2019 21:24
Gradient Along Stroke (Naive)

This (naive) example demonstrates how to create a gradient that follows a stroke or path. This method breaks the stroke into segments and uses stroke-linecap: round; to make the segments overlay and appear connected. The naive approach might useful if your stroke or path is relatively simple and you do not need a high level of precision. See Gradient Along Stroke (Naive) Spiral for same logic but spiral layout.

For a more robust solution see Mike Bostock's miter joint method demonstrated in Gradient Along Stroke.

@bwswedberg
bwswedberg / .gitignore
Last active March 11, 2022 05:40
Time Wheel
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active March 25, 2019 21:03
Duelling Bubble Plot
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active March 13, 2019 20:56
My Facebook Friends
screenshots