Spotlight
Joshua Bagley · 2022 · Playground
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
#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 #815a43#53634e#8c9460#bc9a95#d99a75#281b1c#d26e7f#599886 Algorithms
- HSL / Hue Cycle · classification: rule-based
- Perlin / Simplex Noise primary · classification: rule-based
Details
View generator ↗ · Art Blocks ↗
Sources
- On-chain artblocks.io ↗
Related works (by shared algorithms)
Last updated 2026-07-16