Spotlight

Joshua Bagley · 2022 · Playground

Soft amoebic blobs in olive green, magenta, and gold drift across a dark crimson ground laced with faint scratchy filaments. The forms overlap like backlit cells under a microscope, grainy and luminous. A moody, organic composition where rounded shapes pool and bleed into shadow.
Joshua Bagley · via Art Blocks ↗ · © the artist
Sample output of Spotlight
Joshua Bagley · via Art Blocks ↗ · © the artist
Sample output of Spotlight
Joshua Bagley · via Art Blocks ↗ · © the artist
Sample output of Spotlight
Joshua Bagley · via Art Blocks ↗ · © the artist

Inspired by observing projections of light through a glass cup, Spotlight is an abstract exploration of how light interacts with various shapes and forms in 2D space. It has a strong focus on texture and the use of real world physics as generative rules. 3000 photons spawn on a blank canvas with set direction and velocity. Hidden on the screen, an arrangement of shapes populate the space. When a photon collides with the edge of a shape, it either reflects off or refracts through its surface, changing the photon's direction and color. These photons leave small circles along their path...the only drawn element in the artwork. This painting of light both reveals the hidden forms below and ties their chaotic arrangement together. The resulting image captures the motion and evolution of the light, generating beautiful gradients and layers, and creating the illusion of depth, shadows, and highlights. Press 's' to save a snapshot of the canvas, and 'd' to reveal outlines of the shapes. This artwork renders live, from a blank screen to a filled screen. It may take a while to fully render. Best viewed in extra high definition.

How it works

The core is the drift of particles by Perlin (curl) noise. 3000 photons (Pho) advance while drifting along curl-like directions obtained from a smooth noise field. When the photons hit masses grown by DLA (Dg) or shapes managed by a quadtree, they reflect and refract to change course. The photons' paths are blended in HSB colour space, producing light and dark like a spotlight where light threads through objects. The curl noise makes a smooth turbulent flow, and as the placement of colliding shapes changes with the hash, it generates a scene woven by streaks of light that differs at every point.

Palette

From the generator script · 85
#4b7278#b45062#cbc29b#438839#aa292d#ba8b2c#d97e90#2a4363#d4e28d#9bb88c#89ae9d#6d8c87#727b98#735f7b#6dc3aa#3d7a95#d05f61#f0b255#7267c6#e10e5c#689a3d#52097c#5539bd#3c9ac2#a3d3dc#f7e06a#f1b130#e86761#7c0341#1a282f#1f3742#0c4961 +53 more
Extracted from outputs · 8
#815a43#53634e#8c9460#bc9a95#d99a75#281b1c#d26e7f#599886

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 (2022-02) → art-blocks
Script hash
51373d43146ae0bfab965e25b51da9d73c8a5085e6c65c64ef190570a5b6f721
On-chain
ethereum · 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270 · #256

View generator ↗ · Art Blocks ↗

Sources

Related works (by shared algorithms)

BUSIEST
james-merrill · 2025
BUSY
james-merrill · 2025
Diggly Collects All
dca · 2025
Flourish
sterling-crispin · 2023
Fluiroso
sebastian-brocher-cryptoarte · 2023
Forecast
manuel-larino · 2023
Jenim
orr-kislev-alona-rodeh · 2023
Lucky Clover
sputniko · 2023

Last updated 2026-07-16