Rollody
Subscribe on YouTube

Physics, geometry and maths, rendered by code.

Original simulations where every frame and every sound comes out of a program. Some of that code is open, so you can run it yourself.

Tower of Hanoi1,023 moves
Sierpinski carpet32,768 squares
Harmonic spiral28 orbits

The exhibits

Ten simulations from the channel. Hover to play, click for the details.

Tower of Hanoi

1,023 moves from 5 lines of recursion

Dragon curve

14 paper folds, opened out

Double pendulums

Started 0.000000001 rad apart

Peano curve

One line through 6,561 cells

Brazil nut effect

160 nuts, one rises

Crystal lotus Code

13 petals, one Python file

Harmonic spiral

28 orbits, 28 frequencies

Sierpinski carpet Code

1 square into 32,768

Gold ball vs 3,000

1 heavy ball against 3,000

2248 chain

Merging all the way to 32K

Twelve simulations, nine minutes, sound on.

The long film: every bounce, merge and shatter is computed, and the music is triggered by the physics.

Run the code yourself.

The sketches behind some videos are public. Each one is a single Python file that needs only numpy and pillow, and runs on Windows, macOS and Linux. MIT licensed.

  1. Get the sketches
    git clone https://github.com/null0xxx/rollody-sketches && cd rollody-sketches
  2. Install the two libraries
    pip install -r requirements.txt
  3. Grow a 21-petal lotus
    python sketches/lotus_bloom.py --petals 21
Open on GitHub
lotus_bloom.pyPython
import math
import numpy as np

PETALS = 13
SHELLS = 28

def build_lotus(petals=PETALS, shells=SHELLS):
    theta = np.linspace(0.0, math.tau, 1800)
    for s in range(shells):
        twist = s * 0.046
        rose = np.abs(np.sin(petals * 0.5 * theta + twist)) ** 0.78
        r = (0.16 + 0.84 * rose)
        # ... colour, depth, and a soft glow
Output of lotus_bloom.py: a pink 13-petal crystal lotus
lotus_bloom.py
Output of sierpinski_flip.py: a rainbow Sierpinski carpet
sierpinski_flip.py

Games are next.

We are making Rollody games for Android and iOS. When they are ready, they will live here. Until then, this box is yours: click or tap it to drop more balls.

0 balls

Follow Rollody

New simulations land on every channel.

Get in touch.

A question about a video or the code, an idea for a simulation, the games, press, or working together. Write and we will answer.

null3xxx@proton.me

0 / 2000

Sending opens your email app with the message filled in.