A 3D Digital Globe Made of Digits
Experience a spinning ASCII-style 3D globe rendered in your terminal, crafted with mathematics and Python. Watch as continents rotate before you, each landmass traced in binary digits 0-9.
Mathematical sphere projection using depth calculations and rotation matrices for smooth, realistic animation.
Each point on the sphere is mapped to digits 0-9 based on depth and continental density for authentic representation.
Simplified landmass representation with Gaussian falloff for realistic continental shapes from space.
Terminal color support with cyan/blue gradients mimicking the iconic image's digital aesthetic.
Pure Python using only standard library. Just install Python 3 and run—no pip packages required.
Created with the International Space University's vision of innovation and space exploration in mind.
Download globe.py and run it in your terminal:
$ python globe.py
Algorithm: 3D sphere generation via spherical coordinates with rotation matrix transformations
Animation: Frame-based rendering with 50ms refresh for smooth terminal display
Landmass Detection: Gaussian-weighted continental density based on proximity to major continent centers
Digit Selection: Weighted combination of depth (z-rotation) and land density for visual depth
Performance: Optimized for 80x24+ terminal windows, auto-clears for smooth animation