Color Function Example

Details

Action

Mathwright32 makes use of 2^32 (approximately 16 Million colors) in drawing and painting routines such as: pencolor, fillcolor, pagecolor, background, etc. Whenever one of these needs a color, pass color(R,G,B) where R, G, and B are integers between 0 and 255, denoting the intensity of Red, Green and Blue, respectively.

pencolor color(127,127,127);

sets the pen to grey. Or

graph sin using color color(0,0,127);

Draws sine graph in blue.