Color Routines


clear()

Clears the screen to the current color.

   Fortran:
        subroutine clear

   C:
        clear()

   Pascal:
        procedure Clear

color(col)

Set the current color. The standard colors are as follows:

   black = 0       red = 1         green = 2       yellow = 3
   blue = 4        magenta = 5     cyan = 6        white = 7.
   Fortran:
        subroutine color(col)
        integer col
   C:
        color(col)
             int  col;

   Pascal:
        procedure Color
circleprecision

mapcolor(indx, red, green, blue)

Set the color map index indx to the color represented by (red, green, blue). If the device has no color map this call does nothing.

rgb values are in the range of 0 to 255.

   Fortran:
        subroutine mapcolor(indx, red, green, blue)
        integer indx, red, green, blue
   C:
        mapcolor(indx, red, green, blue)
             int  indx, red, green, blue;

   Pascal:
        procedure MapColor(indx, red, green, blue: integer)
mapcolor