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

SetRGB4CM

Set one color register for this ColorMap.

Declaration

Source position: agraphics.pas line 2147

procedure SetRGB4CM(

  Cm: PColorMap;

  n: SmallInt;

  r: Byte;

  g: Byte;

  b: Byte

);

Arguments

Cm

  

Colormap

n

  

The number of the color register to set.

r

  

Red level (0-15)

g

  

Green level (0-15)

b

  

Blue level (0-15)

Description

Store the (r,g,b) triplet at index n in the ColorMap structure. The changes will not be immediately displayed. Use this function before linking the ColorMap to a ViewPort.

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