Phototaxis
Casey REAS · 2021 · Playground
“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
#ffffff#666666#7f7f7f#000000#99cc00#a6cb2b#3da8c9#44b6c6#dd8363#e06394#999976#769999 #878c8d#080808#eaf1f2#242424#484848#a6a6a6#676767#b2c6c9 Algorithms
- Particle System primary · classification: LLM
- Flow Field / Vector Field · classification: LLM
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16