The world of RGB colors

An RGB color has three components: red, green and blue. On a computer each of these components is usually represented by a 4 digit hex integer. If to each point (x, y, z) of the unit cube we assign the color
([65537*x], [65537*y],[65537*z])

we come to the idea of the RGB cube in which every object, point, line, plane and arbitrary surface is colored.

The following programs are designed to give answer to some simple questions.


For smooth transition of colors, all these programs should be run on a monitor capable of showing millions of colors. Drawing of a point is done by the function SetCPixel and the reading of the color of a point is done by the GetCPixel function.

The meaning of color interpolation becomes less clear if we have more than three non coplanar points in the RGB cube.