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 reference on the left, the Cameleon painting on the right
Left: the reference. Right: the painting made in Cameleon, on a canvas of 800 × 634 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.

The Starry Night painted in Cameleon (H.264, 1280 × 866).

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 painting divided into sky, moon, stars, hills, village and cypress
Regions: sky (blue), moon and stars (yellow), hills (green), village (orange), cypress (dark green).

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.

RegionShareBrightnessSaturation
Sky55.5 %1080.42
Village14.8 %620.36
Hills12.6 %710.44
Cypress12.6 %340.27
Stars3.0 %1440.30
Moon1.6 %1670.52

The colours

Eight colours for each region
Eight colours per region, the largest share on the left: sky, moon, stars, hills, village, cypress.

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 brushwork traced as continuous lines over the darkened painting
The direction of the strokes, traced as 494 lines: the swirls, the halos round the moon and stars, the hills, the flames of the cypress.
The centres of the swirls marked with rings
Where the strokes run round a centre: the big swirl in the middle, the smaller one to its right, the moon's halo.

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.

A grey map: white where the strokes run strongly one way
How strongly the strokes run one way: brightest in the swirls and along the hills.

The size of the strokes

RegionStroke widthMain directionCurvatureWhat it means for the painting
Sky, swirlsabout 6 pxhorizontal, round the centreslow, steadylong curved strokes: the Bezier tool
Moon, stars5–6 pxround the centrehighesta disc, then rings of short strokes, then a glow
Hillsabout 6 pxalong the ridgeslowlong strokes with a flat brush
Villageabout 7 pxmixedlowblocks first, then short dabs
Cypressabout 6 pxvertical, flame-likelowa 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:

  1. Underpainting: the sky as a gradient, the land, the cypress and the village as flat shapes, the moon and stars as discs — six layers.
  2. Brushwork: a flat 20 px brush everywhere, each stroke along the measured direction.
  3. Swirls: the long strokes of the sky as Bezier curves along the traced lines.
  4. Medium and fine strokes: round brushes of 7 and 4 px only where the canvas still differs from the painting.
  5. The cypress again with a flat brush, inside a selection of its own shape.
  6. The glow of the stars: blurred discs in Screen mode, merged down.
  7. 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

A gradient from deep blue at the top to light blue below
Sky: the Gradient tool from #102062 to #5c80c0.
Flat shapes: land, cypress, spire, houses, yellow discs
Land, cypress, village and stars as flat shapes on their own layers.
  1. Sky. In the Color panel switch the target to Background, type 5c80c0; switch back to Foreground, type 102062. Right-click the bucket slot and choose Gradient; drag from the top of the picture to near the bottom.
  2. 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.
  3. Cypress. The same, in 1b2a22, nineteen points up to the tip and down again.
  4. Village. A thin polygon for the spire (9fb0c0), then the Rectangle tool (R) for six house blocks (465c80).
  5. Stars. The Circle tool (U) with Fill AColor: drag from a centre outwards. The moon in f2c83a, ten stars in f4e27a, the big star low in the middle in fbf6d8.

The brushwork

The Pen editor with Roundness 50 and Angle Follow path
The filbert brush: Roundness 50, Angle Follow path, then Apply.
The canvas covered in flat strokes following the swirls
2,463 strokes with the 20 px filbert brush.

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

Long curved strokes laid along the swirls of the sky
656 Bezier curves with a round 5 px pen on the Swirls layer.

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 canvas after the medium strokes
After 3,106 strokes of 7 px.

The cypress in a selection

The cypress outlined by the selection's moving dashes
The magic wand on the Cypress layer selects exactly its shape.

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

The Gaussian Blur window
Filter > Gaussian Blur..., applied three times.
The stars with a soft halo
The glow layer in Screen mode, merged down.

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 Layers panel with twelve named layers
The layers before the finish: Details, Fine, Cypress detail, Medium, Swirls, Brushwork, Stars, Village, Cypress, Land, Sky, Background.

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

The finished painting in Cameleon
The finished painting, 800 × 634 pixels.
StageBrushStrokesDifference from the painting
Underpaintinggradient, shapes—40.4
Brushworkfilbert 20 px2,46323.2
Swirlsround 5 px, Bezier656 curves22.0
Mediumround 7 px3,10619.6
Cypress detailfilbert 10 px, in a selection27919.5
Fineround 4 px5,76817.5
Detailsround 2 px17,71315.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.