Enter an image URL:
This WebGL experiment, created with the Dart programming language, creates an interactive 3D representation of all the colours in a given image.
For those who don't know, a digital image is made up of pixels, which are in turn made up of three different coloured lights: red (R), green (G), and blue (B). Each coloured light, or channel, can shine at one of 256 possible brightness levels.
This experiment treats those 256 possible values for the red, green, and blue channels as positions in 3D space rather than brightness levels. At each position, a square in the corresponding colour is displayed, but only if the image you import contains that colour.
This leads to some very interesting 3D shapes. Use the mouse, or touch the screen, to rotate around the shape.