Animating Drifting Dust With a Five-Colour Palette
Sunrise Animation Lessons · Updated 19 November 2026
Dust in a beam of low light is one of the quietest, most hypnotic loops you can make. Nothing dramatic happens. Small specks drift, catch the light, fade, and drift on. Because the motion is so gentle, every choice about colour and speed is visible, which makes it a wonderful practice piece. This lesson builds a dust loop from three layers of particles and a palette of exactly five colours.
The five colours
A small palette forces you to make each colour do a job. For a warm dusk interior, I use something like the following illustrative set:
| Job | Hex |
|---|---|
| Background shadow | #2E2230 |
| Light beam | #6B4A3E |
| Far dust (dim) | #9C6F52 |
| Near dust (lit) | #E3B27A |
| Brightest sparkle | #FFF0C9 |
The beam is only a little lighter than the shadow. That is deliberate. If the beam is too bright, the specks inside it lose contrast and the whole thing turns flat. A subtle beam lets the lit dust glow against it.
Three layers, three speeds
Depth comes from parallax: things farther away appear to move more slowly. Split the particles into three layers and give each its own size, colour and speed.
- Far layer: many tiny specks, one pixel each, coloured #9C6F52, moving slowly.
- Middle layer: fewer specks, two pixels, a mix of #9C6F52 and #E3B27A, moving at roughly twice the far speed.
- Near layer: a handful of larger, softer specks in #E3B27A with an occasional #FFF0C9 sparkle, moving fastest.
Keep the speed ratios simple, such as 1, 2 and 3 pixels per frame, so every layer can complete a whole number of trips across the frame in the same loop length.
Making the paths wrap
The secret to a seamless particle loop is that every speck must arrive back at its starting position on the final frame. The easiest way is a wrap-around path: a speck that drifts off the right edge reappears on the left. If the frame is 120 pixels wide and the loop is 40 frames, then a near speck moving 3 pixels per frame travels exactly 120 pixels and lands where it began. A far speck at 1 pixel per frame would only travel 40, so give it a gentle vertical wobble instead and let its horizontal drift be small enough that it simply hovers.
For the wobble, a slow sine-like rise and fall over the full loop reads as floating. Offset each speck so they do not bob in unison; matching phases look mechanical. The idea of returning motion is explored more broadly in the lesson on cyclic motion.
Catching the light
Real dust flickers as it turns. To suggest that, let a few near specks switch from #E3B27A to #FFF0C9 for one or two frames while inside the beam, then back. Spread those sparkles across the loop so no two happen on the same frame. Specks outside the beam should drop to the far colour, which makes the beam feel like the light source without drawing an edge.
When it plays, resist the urge to add more. A dust loop is about restraint. If you want something with more drama in the same warm palette, try the candle flicker lesson next.
Sources
- Frank Thomas and Ollie Johnston, The Illusion of Life: Disney Animation (1981)
- Richard Williams, The Animator's Survival Kit