Biomimicry

Creative Coding

This animated and interactive simulation imitates the graphic effects created by chromatophores in a squid’s skin. Everything in this piece is intentional, rather than a result of experimental exploration.

The project was originally inspired by a video of a squid. The cells are initially formed by a Voronoi diagram of a distorted hexagonal point grid. Colours are then assigned by a recursive traversal algorithm, working in accordance with the structure of chromatophore organs. Each cell’s animation behaviour is varied through randomised parameters. The resulting simulation combines three-dimenstional noise disortion, individual cell behaviour, and mouse interaction.

The simulation was written in JavaScript, using the p5.js library.

Interact with the project

Loading…

About this project