Painting The Starry Night in Cameleon
Van Gogh's painting, looked at region by region and painted again from an empty canvas: twelve layers, five brushes, 656 curves, about 33,000 strokes and three filters.
What we paint
The Starry Night, painted by Vincent van Gogh in June 1889 at Saint-Rémy-de-Provence, is in the public domain. The reference used here is the Google Art Project photograph on Wikimedia Commons, 1280 × 1014 pixels.
The aim is a copy that is almost the same as the original, made only with Cameleon's own tools: no photo is pasted in, every pixel is laid by a tool. On the way the tutorial uses layers and their modes, the Hex colour field, the gradient, polygon, rectangle and circle tools, the Pen editor, the Bezier tool, the magic wand, the Filter menu and Merge Down / Merge Visible.
The video
The whole painting from the empty canvas to the last filter, about a minute and a half. When the brush changes, the video cuts to the Pen editor and the filter windows to show the settings.
Looking at the painting
Before the first stroke the painting was taken apart. The analysis works at the canvas size and answers four questions: what are the parts, which colours make each part, which way do the strokes run, and how wide and long are they.
The parts
The sky takes more than half of the picture. The cypress, the hills and the village each take about an eighth; the moon and the eleven stars together less than a twentieth — but they are the brightest things in it.
| Region | Share | Brightness | Saturation |
|---|---|---|---|
| Sky | 55.5 % | 108 | 0.42 |
| Village | 14.8 % | 62 | 0.36 |
| Hills | 12.6 % | 71 | 0.44 |
| Cypress | 12.6 % | 34 | 0.27 |
| Stars | 3.0 % | 144 | 0.30 |
| Moon | 1.6 % | 167 | 0.52 |
The colours
The sky is built from mid blues (#364c7f, #4b6a9b) with a deep ultramarine for the
shadows (#1e2b52) and pale grey-green and ochre for the light (#a5b5b1,
#b4b485). The moon is two yellows, a dark chrome (#b29a20) and a pale lemon
(#c6c886). The cypress is almost black-green (#121714, #181e1c) with a little
brown. For the painting the colours of the whole picture are reduced to 64, typed one after the
other into the Color panel's Hex # field.
The direction of the brushwork
The direction comes from how the brightness changes: along a stroke it changes little, across it a lot. Where that is very clear (white below) the strokes are long and parallel; where it is not (the village, the stars' centres) Van Gogh dabbed.
The size of the strokes
| Region | Stroke width | Main direction | Curvature | What it means for the painting |
|---|---|---|---|---|
| Sky, swirls | about 6 px | horizontal, round the centres | low, steady | long curved strokes: the Bezier tool |
| Moon, stars | 5–6 px | round the centre | highest | a disc, then rings of short strokes, then a glow |
| Hills | about 6 px | along the ridges | low | long strokes with a flat brush |
| Village | about 7 px | mixed | low | blocks first, then short dabs |
| Cypress | about 6 px | vertical, flame-like | low | a dark shape, then flat strokes inside it only |
(Widths are canvas pixels at 800 × 634: the distance between the light and dark stripes across the strokes, halved.)
The plan
A painter works from large to small and from dark to light. The plan follows that, one layer per stage, so each stage can be seen, hidden or redone on its own:
- Underpainting: the sky as a gradient, the land, the cypress and the village as flat shapes, the moon and stars as discs — six layers.
- Brushwork: a flat 20 px brush everywhere, each stroke along the measured direction.
- Swirls: the long strokes of the sky as Bezier curves along the traced lines.
- Medium and fine strokes: round brushes of 7 and 4 px only where the canvas still differs from the painting.
- The cypress again with a flat brush, inside a selection of its own shape.
- The glow of the stars: blurred discs in Screen mode, merged down.
- Details with a 2 px brush, then Unsharp Mask on the merged picture.
Each brushwork stage paints its colours from the darkest to the lightest, so the colour changes only 64 times per stage — as a painter loads the brush.
Setting up
Project > New, 800 × 634 pixels, a linen-white background (#ece8dc). Open
the Color panel: the Hex # field under the sliders takes a colour as
six hex digits — type it and press Enter. That is the fastest way to use a palette written down
beforehand.
Every stage starts with Layer > New. The new layer is called "Unnamed 1", "Unnamed 2"...; click its name in the Layers panel and type a better one (Sky, Land, Cypress...).
The underpainting
#102062 to #5c80c0.
- Sky. In the Color panel switch the target to Background, type
5c80c0; switch back to Foreground, type102062. Right-click the bucket slot and choose Gradient; drag from the top of the picture to near the bottom. - Land. Right-click the line slot, choose Polygon; set
Fill to AColor; colour
23407e. Click the outline of the hills from left to right and round the bottom; Enter fills it. - Cypress. The same, in
1b2a22, nineteen points up to the tip and down again. - Village. A thin polygon for the spire (
9fb0c0), then the Rectangle tool (R) for six house blocks (465c80). - Stars. The Circle tool (U) with Fill AColor: drag from a centre outwards. The moon
in
f2c83a, ten stars inf4e27a, the big star low in the middle infbf6d8.
The brushwork
Van Gogh's strokes are short bands with rounded ends that turn with the movement. In the Pen editor (Windows > Pen editor) lower Roundness to 50 and set Angle to Follow path: the tip becomes an oval that always lies along the stroke. Apply, close the editor and make the brush 20 px with ].
On a new layer, Brushwork, every stroke goes along the direction of the painting at that place (the lines in the analysis) in the colour of the painting there, darkest colours first.
The swirls as curves
The long sweeping strokes of the sky are curves. Set the pen back to round (Roundness 100, Angle Fixed), 5 px, and take the Bezier tool (P). Press where a curve starts and drag a little in its direction; do the same every 12 pixels along the swirl; Enter ends the curve. Each curve follows one of the traced lines for about 50 pixels, in one colour.
Then a Medium layer: round 7 px, strokes only where the canvas still differs from the painting.
The cypress in a selection
The cypress' flames must not spill into the sky. Click the Cypress layer in the Layers panel, take the magic wand (W) and click inside the dark shape: the selection is the cypress. Click the top layer again and add a new layer, Cypress detail. Back in the Pen editor: the filbert brush again (Roundness 50, Follow path), 10 px. Every stroke is clipped to the selection. When it is done, Select > None.
Then a Fine layer: round 4 px, 5,768 strokes where they still help.
The glow of the stars
On a new layer, Glow, draw the moon and the stars again as discs 2.2 times larger in a dark warm colour
(403a24). Blur them with Filter > Gaussian Blur... three times. In the Layers
panel set the layer's mode to Screen: it only lightens, so the halos appear round the stars.
Layer > Merge Down bakes it into the layer below, so the next strokes can still correct
it.
Details and finish
The last layer, Details, takes a 2 px brush: 17,713 short strokes for the edges of the stars, the windows of the village, the thin lines in the cypress. Then Layer > Merge Visible (Ctrl+Shift+E) and Filter > Unsharp Mask... to crisp the edges, and Project > Export.
The result
| Stage | Brush | Strokes | Difference from the painting |
|---|---|---|---|
| Underpainting | gradient, shapes | — | 40.4 |
| Brushwork | filbert 20 px | 2,463 | 23.2 |
| Swirls | round 5 px, Bezier | 656 curves | 22.0 |
| Medium | round 7 px | 3,106 | 19.6 |
| Cypress detail | filbert 10 px, in a selection | 279 | 19.5 |
| Fine | round 4 px | 5,768 | 17.5 |
| Details | round 2 px | 17,713 | 15.3 |
(The difference is the average, over every pixel, of how far the colour is from the painting's, on a scale of 0–255.)
How the strokes were placed
Nobody clicks 33,000 times by hand. The strokes in the video were laid by a script driving Cameleon exactly as a person would — the same menus, keys, windows and tools — from a plan made by a small program:
- it measured the painting (the regions, colours and directions shown above);
- it kept a model of the canvas and, for each stage, tried a stroke at every few pixels: a stroke was kept when it brought the canvas closer to the painting;
- it sorted the kept strokes by colour, dark to light.
To do the same by hand, keep the method and drop the numbers: block in the big shapes on their own layers, set up a flat brush that follows the stroke, paint along the direction you see, use curves for the long sweeps and a selection where an edge must stay clean, and finish with ever smaller brushes only where something is still wrong.
