Load RGB color values from table.
Source position: agraphics.pas line 2325
procedure LoadRGB4( |
Vp: PViewPort; |
const Colors: PWord; |
Count: LongWord |
); |
Vp |
|
A pointer to ViewPort, whose colors you wish to change |
Colors |
|
pointer to table of RGB values set up as an array of Words The colors are interpreted as 15 = maximum intensity. 0 = minimum intensity. |
Count |
|
number of Words in the table to load into the colormap starting at color 0(background) and proceeding to the next higher color number |
load the count words of the colormap from table starting at entry 0.
The ViewPort should have a pointer to a valid ColorMap to store the colors in. Updates the hardware copperlist to reflect the new colors. Updates the intermediate copperlist with the new colors.
|
Allocate and initialize Colormap |
|
|
Inquire value of entry in ColorMap. |
|
|
Set one color register for this viewport. |