Color Pooling on the Hilbert Curve

This is a work in progress and has some bugs. Probably the best way to see some interesting colourings is to try the "preset" buttons. I have only tested on Mac. It may be useful just to use preset options.
The contents of this page is explained in a Bridges Maths Art paper. The slides for the talk on 6th August 2026 are here.
The Handout version of the slides for the talk on 6th August 2026 is here.
A video demonstrating some of the output is here.
change canvas size

offset
corner radius line width iteration level number of repeats u_params.w start and end sides of path u_params2.x u_params2.y background colour 0 scale image animation speed
Number of curves:
Distortion options:
strip along bottom:
(Operation Sequence)
Preset images:
download jpg
params are: time, width, shade, stage, breakone, linescale, breakadjust


Descriptions of background options:

Note about thread sample: along the bottom, as a thread colour indicator strip, shows a section of thread. This section is (in most colour modes), repeated a number of times, and so will be scaled down on the Hilbert curve. The number of times this section is repeated in the total curve is indicated (chosen by one of the sliders).
Tick marks, when shown on the thread colour indicator strip, indicate how a unit length of the pattern fits over a section of the thread. There are also marks for 32 units; this number of edge units can form a square region, so this gives an indication of blocks of colour.

This is a preliminary version, and could be improved in many ways, but is adequate to get an idea of some of the possibilities of colour pooling on the Hilbert curve.


Some images:
Hilbert curve colouring Hilbert curve colouring Hilbert curve colouring distorted Hilbert curve colouring distorted Hilbert curve colouring Hilbert curve colouring Hilbert curve colouring, using mask shape of photo of Hilbert Hilbert curve with slightly ofset colouring sequence length