Skip to main content
100%

See-Through Globe II

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Sep 28, 2013

A rotating orthographic globe displays both its near and far hemispheres through a see-through effect. The code uses `d3.geo.orthographic` with a 90° clip angle, drawing the front-facing land and graticule in dark tones, then flipping the canvas horizontally with `context.scale` and re-projecting with a 180° longitude offset to render the back-facing polygons in lighter colors. The animation runs on a `d3.timer`, with land data from a TopoJSON world-110m file and rendering via Canvas 2D.

AI-generated description

Another way of implementing a see-through globe, this time always clipping to 90°, but flipping the canvas along the <i>x</i>-axis to draw the back-facing polygons.

gpl-3.0 Licensed

Similar vizzes