Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

LoadRGB4

Load RGB color values from table.

Declaration

Source position: agraphics.pas line 2325

procedure LoadRGB4(

  Vp: PViewPort;

  const Colors: PWord;

  Count: LongWord

);

Arguments

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

Description

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.

See also

GetColorMap

  

Allocate and initialize Colormap

GetRGB4

  

Inquire value of entry in ColorMap.

SetRGB4

  

Set one color register for this viewport.


Documentation generated on: 2021-07-30