Images

LA home
Computing
Prog.Langs
 Java

Colour Cube

Applet would go here if you had Java on.  

The applet (left) draws a slice through the RGB colour cube at a particular colour level = red + green + blue.

The mouse can be used to change the colour level - click near the top of the applet to raise the level, click near the bottom of the applet to lower the level.

 

Using the applet (above) we are looking down the diagonal of the cube from white towards black.

The slices through the cube are triangular near to black (#000000) or white (#FFFFFF) and hexagonal when the overall level is between 255 (#FF) and 510 (#1FE)

  schematic colour cube and colour axes
Source code: [Colour.java].
Also see [colour table].
www #ad:

Java
 APIs

↑ © L. Allison, www.allisons.org/ll/   (or as otherwise indicated).
Created with "vi (Linux)",  charset=iso-8859-1,   fetched Thursday, 15-Apr-2021 11:06:17 EDT.

Free: Linux, Ubuntu operating-sys, OpenOffice office-suite, The GIMP ~photoshop, Firefox web-browser, FlashBlock flash on/off.