Examples /

Gravitational lens

Drag a point-mass lens across a galaxy atlas. Watch a spiral stretch into arcs and split into multiple images.

Initializing WebGPUwgpu-kit 2.2.0

Drag to move the lens; arrow keys make fine adjustments. Switch Lens off to compare the exact same sky. Enable the source grid to see the geometry bend.

How it works

Each pixel traces an observed image angle back to the source atlas with the point-mass thin-lens equation: β = θ − θE²(θ − lens)/|θ − lens|². The blue spiral becomes arcs near alignment; off-axis galaxies produce a larger image and an inverted secondary image. Relative mass scales θE² at fixed distances. This dimensionless, weak-field, geometric-optics approximation uses a procedural source atlas and a tiny numerical floor at the point singularity. The crosshair marks the lens, and the constellation and grid are visual guides. It does not model strong-field black-hole optics or an accretion disk. Both views keep identical exposure and a fixed source atlas.

Point-mass thin-lens reference ↗Read the related guide →

Search concepts, APIs, and examples