Skip to content

Instantly share code, notes, and snippets.

View bwswedberg's full-sized avatar

Brian Swedberg bwswedberg

View GitHub Profile
@bwswedberg
bwswedberg / .gitignore
Last active March 25, 2019 21:14
Circular Fractal
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active January 1, 2020 08:50
Satellite Map Using Leaflet with Wrapping
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active January 1, 2020 08:50
Satellite Map Using Three.js with Zoom and Pan
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active January 1, 2020 08:49
Satellite Map Using Leaflet + D3 with Wrapping
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active January 3, 2020 08:18
Satellite Map Using Leaflet
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active March 13, 2019 20:33
Filled Donut Chart
screenshots
@bwswedberg
bwswedberg / .gitignore
Last active March 25, 2019 21:13
Sine Water Effect
screenshots
@bwswedberg
bwswedberg / README.md
Last active January 1, 2020 08:51
Collapsible Tree with Minimap
@bwswedberg
bwswedberg / .gitignore
Last active April 18, 2020 16:05
World Wrapping Map w/ Click-to-Zoom
screenshots
@bwswedberg
bwswedberg / README.md
Last active March 14, 2019 19:48
Gradient Along Stroke (Naive) Spiral

This example demonstrates how to create a gradient that follows a stroke or path of a spiral. 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.

Similarly, Gradient Along Stroke (Naive) shows how this method could be used in contrast to Mike Bostock's robust miter joint method demonstrated in Gradient Along Stroke.