2025 · Interactive field guide – Illustrator, p5.js, Python (PyTorch)

A sea slug in bold black linework that comes alive: it floats, its limbs ripple like seaweed, and when you stir too fast it pulls them in and flares into warning colours, then slowly calms down again. Real nudibranchs warn with colour – often of the poison they take from their food. This field guide follows six species of the invented genus Mikatoa, from the mint drifter to the ink ghost; each is coloured by what it eats, a pastel from this site at rest and a strong warning colour when alarmed. The motion is made in p5.js from the one drawing: every point turns around the body's spine as a wave travels along it, and the limb tips curl. A first version had a small neural network (Python, PyTorch) learn the frames between two hand-drawn poses – it's in the process below.

Case study

Role

Solo project – drawing, motion design, code

Tools

Interactive field guide – Illustrator, p5.js, Python (PyTorch)

The challenge

Nudibranchs have been among my favourite sea animals since I started diving. I wanted my drawing of one to move the way they do – alive in the browser, without redrawing it frame by frame and without losing the bold linework.

Decisions

  1. Learned in-betweens first

    I drew two poses of the limbs and trained a small PyTorch network to learn how each point of the outline moves from one to the other. It worked – but the result was a fixed loop, not a creature.

  2. Motion from rules, not frames

    The live version turns every point around the body's spine as a wave travels along it. The drawing stays one drawing, and the motion can react: stir too fast and it pulls its limbs in and flares into warning colours.

  3. One system, six species

    Colours and behaviour are parameters, so the same code makes six specimens – and renders the field-guide posters straight from the live sketch.

Result

A live piece on this page that runs on phones and desktops, six A5 field-guide posters, and the source on GitHub.

Process

The drawing: bold black linework
The drawing: bold black linework
Two poses of the limbs, drawn by hand
Two poses of the limbs, drawn by hand
First version: the frames between the two poses learned by a neural network
Neural network interpolating between the two poses
Neural network interpolating between the two poses
The generated frames, one colour per limb
The generated frames, one colour per limb
Animated colour test: cyan and violet
Colour test: magenta
Colour test: magenta
Animated colour test: magenta
Animated colour test: black speckle