Fable 5.2 Python art (30 images)
Thirty images that Claude Fable 5.2 drew with Python code only. No AI image model and no photos. Each image is shown with the exact script and the prompt that made it.
claude-fable-5-2Claude CodeNov 13, 202630 images
Every image in this experiment was drawn with Python code only. No AI image model was used, and no photos or existing artwork were downloaded or traced. Each pixel comes from a script: procedural drawing, noise, math, and small simulations. Read the full write-up ↓
The rules · 5
- Every pixel comes from Python code. No AI image model, and no downloaded or traced photos or artwork.
- No fonts, except for an optional small caption.
- Each image is 1600×2000 pixels, saved as a PNG.
- Each script runs on its own in under 10 minutes and uses a fixed random seed.
- The exact script and prompt are shown next to the image.
The images · 30
Open shows the full-size image. View code shows the script and the prompt that made it.07Underwater kelp forest
The light rays are noise laid out by angle around a point above the surface. The kelp is three depth layers of swaying stalks; each blade is a curved shape with its own width profile, and blades near the light turn golden.
02Desert dunes at golden hour
This is a real 3D render, not a painting. A height function makes dunes with long windward slopes and steep slip faces, the script projects it in perspective, sweeps each depth row from the sun side to find cast shadows, and adds wind ripples per pixel.
03Misty mountain lake at dawn
Six ridgelines come from one-dimensional fractal noise; each one is darker and less foggy than the one behind it. The water is a mirror copy of the scene with ripple distortion, a glitter path under the sun, and mist on the water line.
04Rainy city street at night
This is a small ray tracer. Two rows of buildings have procedural shop windows, lit upper windows and neon signs whose "letters" are random stroke patterns, not real writing.
05Lighthouse in a storm
The clouds are warped fractal noise, the open sea is a flat plane with ridged wave patterns in perspective, and three large wave layers sit in front of it. The spray is a particle simulation: about 350,000 droplets fly on ballistic paths with wind and gravity, and their density becomes the white burst against the cliff.
06Autumn forest path
The picture is built far to near in three depth bands of trunks and leaf clusters, with roughly 40,000 leaf dabs in the trees and on the ground. Each dab takes its colour from its distance to the low sun, from pale gold near the light to deep red at the edges.
08Earthrise over the Moon
The Moon is a height field with about 6,700 stamped craters in a realistic size mix, drawn in perspective with the curve of the horizon and hard cast shadows from a low sun. The Earth is a shaded sphere: 3D noise makes the continents and the cloud bands, with ice caps, a sun glint on the ocean and a thin blue rim of air.
09Cherry blossom tree by a river
The tree grows from a recursive branching rule that leans each new branch back toward the sky. About 47,000 blossom dabs cluster around the branch tips, lighter on the side that faces the sun.
10Cozy snowy village window
A row of dark houses lines up on one vanishing point, and a half-timbered cottage on the right has the only light: a candle behind a window with curtains, glazing bars and frost in the pane corners. The window throws a warm patch with bar shadows across the snow.
11Flow-field ink
About 150,000 particles follow a swirling flow field, which is made from smooth noise plus a few whirlpools and has no sources or sinks, as in real water. Every particle leaves a thin trail.
12Reaction-diffusion coral
This is a Gray-Scott simulation: two virtual chemicals spread and react on a grid. The feed rate, the kill rate and the diffusion speed change slowly across the picture, so one run grows brain-coral mazes, spots and worm shapes.
13Voronoi stained glass
Every pane of the pointed-arch window is a Voronoi cell: the area that is closer to one "site" point than to any other. The site points are placed with a plan (rings round a low sun, pairs along the hill lines and the river banks), so the lead lines draw a sunrise landscape.
14Strange attractor
A Clifford attractor: one short formula with sines and cosines is applied again and again to about three million points at once, and every visit is counted per pixel (more than 600 million visits in total). The counts are compressed with a logarithm (tone mapping), so both the faint veils and the bright folds are visible.
15Fractal deep zoom
A view into the Mandelbrot set at about 30 million times magnification. For every pixel the script counts how fast the point escapes, with a smooth fractional count, and estimates the distance to the set, which draws the thin filaments cleanly.
16Imaginary island map
The script invents an island as a height map from layers of smooth noise, then treats it like real terrain: water is routed downhill so that every cell drains to the sea, cells that collect enough water become rivers, and filled hollows become lakes. The map is drawn with elevation tints, hill shading, contour lines, coastal water lines, woodland dots, peaks and towns.
01Winter aurora forest
The aurora is three curtains of vertical rays that hang from wavy lines, built from stretched one-dimensional noise and limited so the green never burns out to white. The pines are built branch by branch from dark needle strokes with snow strokes on top, and each branch is warmed by how much it faces the lamp.
17Truchet maze
A grid of 20 x 25 square tiles, where each tile carries two quarter-circle arcs or a straight crossing. The arc ends always meet in the middle of the tile edges, so the tiles join into long ribbons.
18Circle packing
About 4,000 circles are packed so that no two overlap. The picture is first divided into four invisible regions (night sky, moon, hill and a sitting cat); a circle may never cross a region border and takes its colour only from its own region.
19Bauhaus poster
Every shape (disc, bar, triangle, ring, arc) is a distance formula, which gives clean edges. The shapes are sorted onto four "printing plates" (yellow, red, blue and black) that are printed one over the other with a light-absorbing ink model, so red over yellow turns orange and red over blue turns deep maroon.
20Interference waves
A pond seen from straight above. Seven drops each send out circular ripples with their own wavelength, and the ripple heights are added, so crests and troughs cancel or double where the rings cross and make the lattice pattern.
21Painterly still life
The fruit bowl, bottle, grapes and table are a small 3D scene made of distance formulas (spheres, a hollow bowl, blended shapes for the pear and the lemon). The script ray-marches that scene at half size with soft shadows from a window on the left, and the same window throws a patch of light with glazing bars onto the wall.
22Glass of water
The glass and the water are distance formulas, and every camera ray bends at each air, glass and water surface by Snell's law, so the table and the wall are seen distorted through the glass. The shadow and the bright light pattern on the table (the caustic) are not painted: about 13 million light rays per colour leave the lamp, pass through the same glass and are counted where they land, with a slightly different bending strength for red, green and blue.
23Isometric cozy cabin
The scene is a small world of cubes: a floating piece of forest with a log cabin, pines, a pond with a waterfall, a path and a lantern. Each visible cube face is lit by the moon and by warm lamps outside the windows, with shadows that are found by stepping through the cubes, and is then drawn as a tiny isometric cube four pixels wide.
24Great wave woodblock
This is a new composition in the manner of a Japanese woodblock print, not a copy of Hokusai: the wave curls from the right over a red sun. Every shape is a polygon built from smooth curves; the stripes follow the flow between the inner and the outer edge of the wave, and the foam claws are small curling fingers that branch into smaller fingers.
25Synthwave sunset
The valley is a real 3D mesh of triangles in perspective, with a flat grid road in the middle and random peaks at the sides; it is drawn from far to near so that near hills hide far ones. The neon lines get a soft glow from several blurs, the sun has cut-out stripes that grow wider toward the bottom, and the road carries a column of light bars as a mirror image of the sun.
26Orrery diagram
A brass clockwork model of the solar system seen from above, on a midnight-blue star chart with imaginary constellations. Rings, gears and arms are distance formulas shaded like turned brass (bright bands that sweep round the centre, bevelled edges, drop shadows), and the planets are small lit spheres with procedural surfaces.
27Botanical fern
The three fronds grow from an L-system: a short set of rewriting rules (a stem piece becomes a stem piece, two side branches and a new tip) that is applied again and again, then drawn by a "turtle" that walks and turns. The several thousand leaflets are painted as transparent washes that darken where they overlap and at their rims, over thin sepia pen lines.
28Hot air balloons
The valley is built far to near from five noise ridgelines with bands of mist between them and a low sun in the gap. Every balloon is a true surface of revolution: for each pixel the script finds the point on the curved envelope, its panel and its angle to the sun, so the stripes bend round the form and the sunny side glows.
29Spiral galaxy
The galaxy is first built face-on: a logarithmic spiral gives the two arms, noise gives the blue star clusters and pink gas clouds, and dust lanes on the inner side of each arm dim and redden the light behind them. That flat picture is tilted into the view, a golden central bulge is added, and about 1.1 million single stars are scattered where the galaxy is bright.
30Free choice: storm tower at sunset
The cloud shape is a set of soft blobs (a tower with an anvil top) that is broken up with 3D noise. For every pixel a ray walks through the volume in 150 steps, and at every step a second short walk toward the sun measures how much cloud is in the way; this gives the glowing sunlit edges and the blue shadowed side.
The write-up
Every image in this experiment was drawn with Python code only. No AI image model was used, and no photos or existing artwork were downloaded or traced. Each pixel comes from a script: procedural drawing, noise, math, and small simulations.
Claude Fable 5.2 made the images in Claude Code. It worked from 30 subjects in 3 sets of 10: scenes (01–10), generative art (11–20), and styles (21–30). Image 30 was the model's free choice.
Each image is 1600×2000 pixels. Each script runs on its own and uses a fixed random seed, so it reproduces the same image. The render times in the notes run from about 2 seconds to about 115 seconds, so every script finishes well inside the 10-minute limit. The scripts use three Python packages: NumPy, Pillow, and SciPy.
The exact script sits next to the image it made, with the prompt it came from, so you can read the code and judge the result yourself.
A post on X showed an image that Claude Fable 5.2 made with Python. Image 01 is an homage to it.
The format is inspired by @ducksays on X (opens in a new tab). The briefs here are my own.































