S4×C2 and the Colour Cube

A colour image, such as the one below, is a two-dimensional array of pixels. Each pixel is a point in a 3-space, the dimensions of the space being the amounts of redness, greenness, and blueness in the pixel. These three dimensions correspond to the three kinds of light-detecting cones in our eyes. Colours other than red, green and blue are formed by appropriate choices of the amounts of redness, greenness and blueness; if they are all 0% the pixel is black, if they are all 100% it is white.

Thus each pixel is a point chosen from within a cube. This is known as the colour cube, as described in the wikipedia article on color models.

The symmetry group of a cube is S4×C2. This page shows the action of the group S4×C2 on the colour cube. The form below allows you to specify any of the group's 48 elements, and applies it to the image below. The resulting transformed image the appears to its right.

How to reassign the
three colour axes

Which colour axes should
then be inverted?

URL of image to be recoloured

  • No swapping
  • redgreen
  • bluegreen
  • redblue
  • rbgr
  • rgbr
  • Invert red
  • Invert green
  • Invert blue


Here are some other images you could use, click on a thumbnail image below to copy its URL into the box above. Or, type in the URL of any other image.

Other pages on colour groups
Other pages on groups.
Copyright N.S.Wedd 2008