isn't a library routine, but a variable defined in the library for use with ‘color’ the and library procedures. After you pick your 'Plot’, 'DrawTo', 'Fill’ graphics mode (using and set up the color registers (using 'Graphics’) 'SetColor'), you can plot and draw in that mode using any of the colors you've specified by first using the assignment: color= <number> where <number> is related to the color register containing the color you want to use. The following table shows this relationship for the different graphics modes. For every group of related modes, each SetColor 'register' is followed by its associated and some descriptive 'color’ <number>, comments. Graphics SetColor Color Description and Comments Mode number ‘register’ 0 0 N/A -- and 1 N/A -- all 2 N/A Character Lumance text 3 N/A Background windows 4 N/A Boarder 0 N/A Character 1 N/A Character 1,2 2 N/A Character 3 N/A Character 4 N/A Background 0 1 Graphics Point 1 2 Graphics Point 3,5,7 2 3 Graphics Point 3 -- -- 4 0 Gr. Pt. Background, Boarder 0 1 Graphics Point 1 -- -- 4,6 2 -- -- 3 -- -- 4 0 Gr. Pt. Boarder, Background
‘color’ isn't a library routine, but a variable defined in the library for use with the 'Plot’, 'DrawTo', and 'Fill’ library procedures. After you pick your graphics mode (using 'Graphics’) and set up the color registers (using 'SetColor'), you can plot and draw in that mode using any of the colors you've specified by first using the assignment: color= <number> where <number> is related to the color register containing the color you want to use. The following table shows this relationship for the different graphics modes. For every group of related modes, each SetColor 'register' is followed by its associated 'color’ <number>, and some descriptive comments. Graphics Mode SetColor ‘register’ Color number Description and Comments 0 and all text windows 0 1 2 3 4 N/A N/A N/A N/A N/A -- -- Character Lumance Background Boarder 1,2 0 1 2 3 4 N/A N/A N/A N/A N/A Character Character Character Character Background 3,5,7 0 1 2 3 4 1 2 3 -- 0 Graphics Point Graphics Point Graphics Point -- Gr. Pt. Background, Boarder 4,6 0 1 2 3 4 1 -- -- -- 0 Graphics Point -- -- -- Gr. Pt. Boarder, Background