Skip to content

Releases

Version 1.2.0

Choose a tag to compare

@davewalker5 davewalker5 released this 24 Oct 07:20
7114c66

Bringing the Skin to Life

Until now, the simulator has primarily explored how thousands of individually controlled pigment organs — chromatophores — can expand and contract to create patterns. Version 1.2.0 builds on that foundation, improving how those organs are arranged, how they respond, and how their combined colours interact with the reflective structures beneath them.

What's New

More Realistic Skin Colours and Reflection

The skin now includes a pale underlying layer with subtle, blue-green structural reflection, inspired by the leucophores and iridophores found in cuttlefish.

The pigment palette has also been revised, using more natural ochre, rust and brown tones in place of the previous, more illustrative colours.

Importantly, expanded chromatophores no longer simply obscure the underlying reflection. Their pigments filter the light passing through them, allowing the reflective layer to contribute to the final appearance.

This produces more subtle colour combinations, particularly where pigment coverage is incomplete.

Independent Pigment Controls

Yellow, Red, Brown and Black chromatophores now have their own target-strength controls.

Each pigment group can be adjusted independently from 0% to 100%, allowing experiments with the contribution of different pigments to the overall appearance.

For example, reducing the darker pigments can reveal warmer colours, while reducing individual groups demonstrates how the same underlying pattern can produce quite different results.

These adjustments work with both static patterns and dynamic displays, without resetting the animation.

A More Organic Arrangement

Chromatophores are no longer arranged as perfectly regular, equally sized circles.

Their positions, maximum sizes and pigment identities now vary across the skin, creating a less mechanical appearance while retaining the same underlying population of 2,500 individually controlled organs.

The arrangement is reproducible and remains fixed as patterns change. The organs themselves do not move around the skin — they expand and contract in place.

More Natural Responses

A new Natural timing mode introduces smoother, faster responses, with small, consistent variations between neighbouring groups of chromatophores.

Rather than every organ expanding or contracting at precisely the same rate, nearby organs of the same pigment share slightly different response characteristics.

The default response now reaches approximately 99% of a target change in 250 milliseconds, providing a more convincing impression of the rapid colour changes associated with cephalopods.

The original constant-speed behaviour remains available through Uniform timing, making it possible to compare the two approaches.

Reflection Changes with Viewing Angle

Skin View now responds to independently adjustable camera and light directions.

As these angles change, the intensity and colour of the underlying structural reflection can change too. Blue-green reflections may shift towards blue or violet, and different parts of the skin respond differently according to their simulated reflective orientations.

Crucially, this changes only the appearance of the skin. The chromatophores themselves retain their current positions, sizes and targets.

It's an interesting way to explore the difference between a pigment-based colour change and a change in how light interacts with a reflective surface.

Under the Skin

Alongside the visible improvements, the rendering and simulation code has been developed to support the new behaviour.

  • More accurate calculation of pigment coverage, accounting for irregular organ positions and sizes
  • Colour filtering and blending in linear RGB light
  • Reproducible organ layouts and locally coordinated response timing
  • Separate rendering responsibilities for individual chromatophores and their combined skin appearance
  • Consistent underlying behaviour across the desktop application and browser explorer
  • Expanded automated tests covering geometry, timing, colour calculations and reflection

The project wiki has also been updated to explain the new features, the underlying model and the implementation architecture.

Exploring the Changes

A few experiments are particularly rewarding in this release:

  1. Switch between Chromatophore View and Skin View to compare the individual pigment organs with their combined appearance
  2. Try Changing Mottle, then adjust the four pigment levels independently to see how the colour balance changes
  3. Compare Natural and Uniform timing while running a Travelling Wave or Radial Pulse
  4. Contract the chromatophores, switch to Skin View, and adjust the camera and light angles to explore structural reflection
  5. Use Hold to freeze the chromatophores, then change the reflection angles. The pattern stays still, but its appearance can change

A Note on Biological Realism

The simulator takes inspiration from the common cuttlefish, Sepia officinalis, but it remains an educational and exploratory model rather than a detailed physiological reconstruction.

Its pigment properties, reflective structures, organ arrangements and response timings are informed by real biological mechanisms, but their numerical parameters are illustrative rather than scientifically calibrated.

The aim is to make the relationships between chromatophores, underlying reflection, movement and visible skin patterns easier to explore and understand.

Version 1.1.0

Choose a tag to compare

@davewalker5 davewalker5 released this 08 Oct 07:42
b0ed5a1

This release adds a web-based Chromatophore Explorer, allowing the simulator to run directly in a browser using HTML, CSS and JavaScript.

What's new

  • Added a browser-based interactive version of the Chromatophore Simulator
  • Includes both Chromatophore View and Skin View
  • Supports the existing static patterns and dynamic displays
  • Includes controls for expansion rate, contraction rate, response delay and display speed
  • Includes whole-field controls for expanding, contracting and randomising the chromatophores

The existing Python/Pygame desktop application remains unchanged.

Version 1.0.0

Choose a tag to compare

@davewalker5 davewalker5 released this 07 Oct 21:13
fea6755

This is the first public release of Chromatophore Simulator, an experimental graphical model inspired by cephalopod chromatophores and the changing skin patterns they can produce.

The simulator models a field of 2,500 individual chromatophores arranged in a 50 × 50 grid. Each chromatophore retains its own position and pigment while expanding and contracting independently, allowing larger-scale patterns to emerge from the combined display.

Features

  • Graphical simulation of 2,500 individually controlled chromatophores
  • Four pigment classes: yellow, red, brown and black
  • Static patterns including spots, bands and checkerboard arrangements
  • Dynamic displays including travelling waves, expanding pulses and changing mottles
  • Adjustable expansion rate, contraction rate, response delay and display speed
  • Manual expand, contract and randomise controls
  • Chromatophore View showing the individual pigment organs
  • Skin View showing their combined appearance as a continuous surface
  • Live switching between views without interrupting the simulation
  • Keyboard and on-screen controls for interactive experimentation

Running the application

Chromatophore Simulator requires Python 3.14 or later and a graphical desktop environment. It uses Pygame Community Edition.

Full installation instructions, controls and usage examples are available in the project Wiki.

About this release

Version 1.0.0 establishes the core simulation and visualisation framework for the project. It is intended as an experimental visual model rather than a detailed recreation of cephalopod physiology, providing a foundation for further exploration of dynamic pattern generation and bio-inspired simulation.