Skip to main content
100%

Pencil Sketch

✓ Published0🌍 Public
Mmbostock
Last edited Apr 27, 2020
Created on Sep 18, 2014

A rotating globe appears hand-drawn, with landmasses rendered as multiple overlapping, jittered outlines in a sketchy style. The visualization uses D3’s geometry pipeline to resample, jitter, and smooth points along great arcs for a hand-drawn effect. It renders to a canvas element, animating the globe’s rotation over time. The code loads world map data from a JSON file and draws it using an orthographic projection.

AI-generated description

This stylized globe uses D3’s in-development geometry pipeline to jitter points before rendering. Points are sampled along great arcs, jittered, and then smoothed using basis-spline interpolation to achieve a hand-drawn effect. The resulting spherical geometry is computed once, allowing faster rendering with arbitrary rotation!

This techinque was developed in collaboration with Derek Watkins for Norway the Slow Way.

gpl-3.0 Licensed

Similar vizzes