Basic Color Functions

Basic functions governing color:

 

Function

Description

Example

 

WINCOLOR

Specifies the color of a Window's background and its plot

wincolor(green, red) sets the background to green and the first series to red.

SETCOLOR

Sets the color of a series in a Window.

setcolor(green, 2) sets the second series in the current Window to green.

SETPALETTE, MAPPALETTE

Sets an ordered list of colors to use in shading..

setpalette(yellow, green, blue, purple, red, black) sets a palette of six colors for use by plots that employ shading.

SETSHADING

Sets the range of colors used in shading (system must support dynamic color assignment).

setshading("spring green", "slate blue") sets a smoothly graded palette of colors between the two specified colors.