Phototaxis

Casey REAS · 2021 · Playground

On pure black, gossamer white threads converge into a luminous figure-eight knot at the centre, then radiate outward in fine sweeping rays. Faint looping filaments arc across the lower edge. The effect is delicate and astronomical—a swarm of light caught mid-orbit, ethereal and weightless.
Casey REAS · via Art Blocks ↗ · © the artist
Sample output of Phototaxis
Casey REAS · via Art Blocks ↗ · © the artist
Sample output of Phototaxis
Casey REAS · via Art Blocks ↗ · © the artist
Sample output of Phototaxis
Casey REAS · via Art Blocks ↗ · © the artist

“Phototaxis” is a simulated environment populated by simple machines. After Valentino Braitenberg’s 1984 book “Vehicles,” there are four kinds of machines with different wiring and behaviors: Explorers, Aggressors, Lovers, and Cowards. Each line charts the history of one machine’s movement. The core of this code was the foundation for my MicroImage series of works dating back to 2001. I’ve worked on it in fits and starts since then, and in 2021 it was further developed for Art Blocks. Press ‘P’ to play/pause, ‘B’ for the big bang, ‘1’–’5’ to change the magnification, and ‘L’ to reveal the lights’ locations.

How it works

The core is light-seeking vehicles (Braitenberg vehicles). Four kinds of agent with left and right light sensors (V2A/V2B/V3A/V3B, class M) measure the distance to each light source and update their speed and direction according to the difference, approaching or moving away from the light. Because the wiring of sensors and drive wheels differs per kind, different behaviours such as phototaxis and negative taxis appear. Many agents leave their trajectories of movement as lines, and with the hash deciding the light sources' placement and the palette, an image a swarm of creatures draws around light is generated.

Palette

From the generator script · 12
#ffffff#666666#7f7f7f#000000#99cc00#a6cb2b#3da8c9#44b6c6#dd8363#e06394#999976#769999
Extracted from outputs · 8
#878c8d#080808#eaf1f2#242424#484848#a6a6a6#676767#b2c6c9

Algorithms

Details

Tools
p5.js
Runtimes
Browser (Canvas / 2D), On-chain Deterministic
Movement
Long-form Generative Art
Medium
On-chain generative edition
Relations
released-on (2021-09) → art-blocks
Script hash
57a994d9131fbdc79941579e3097d64291fb90bbfd1def3fc847f5df23bcc997
On-chain
ethereum · 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270 · #164

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

Blooms
cory-haber · 2024
Drift
paolo-ceric · 2023
Flows
ryley-o-eth · 2023
Mycelia
jmy · 2023
Essenza
stefano-contiero · 2022
Hōrō
makio135 · 2022
Lacunae
james-dalessandro · 2022
Through Curved Air
jacob-gold · 2022

Last updated 2026-07-16