martipy

maths + art + trippy: hear the colour, see the maths. A gallery where every image is an equation, and every equation is moving. Put the radio on, turn up the warp, and watch numbers melt.

Enter the gallery
Contains colour-cycling motion.
Behind this page, right now
θ ↦ |θ mod 2π/6 − π/6|
6-fold kaleidoscope · warp 0.70 · log-polar tunnel

The mixer

The background is one formula, evaluated for every pixel about 60 times a second. Step inside it fullscreen, bend it with the sliders, and tap the beat so it pulses with the music.

Martipy Radio

Long psychedelic mixes streamed from YouTube playlists. Pick a station, or paste any YouTube playlist link to make it your own.

Loading the YouTube player…

Space play or pause · N next · P previous · T trip mode

Tap ☆ on a station to play it every time you open Martipy. Playlists you add are saved in this browser.

Why maths looks like a trip

Form constants

In the 1920s the psychologist Heinrich Klüver noticed that people describing hallucinations kept reporting the same few shapes: tunnels, spirals, lattices and cobwebs. He called them form constants.

The brain's own geometry

In 1979 Ermentrout and Cowan showed that the eye-to-cortex map is roughly a log-polar transform. Simple stripes of activity in the visual cortex would therefore be seen as tunnels and spirals. The background here uses the same log r trick.

Order at the edge of chaos

Julia sets and strange attractors come from rules short enough to fit on one line. Because they are deterministic but never repeat, the eye keeps finding patterns and never settles.

Enjoyed the trip?

Leave a like so I know it landed, or star the code on GitHub.

Star on GitHub
Radio is offPress play to start
0:000:00