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

SetRGB4

Set one color register for this viewport.

Declaration

Source position: agraphics.pas line 2090

procedure SetRGB4(

  Vp: PViewPort;

  n: LongWord;

  r: LongWord;

  g: LongWord;

  b: LongWord

);

Arguments

Vp

  

Modify this viewport

n

  

Change this color. If the color is outside the range of valid colors, it will be ignored.

r

  

Red level (0-15)

g

  

Green level (0-15)

b

  

Blue level (0-15)

Description

Change the color look up table so that this viewport displays the color (r,g,b) for pen number n.

If there is a ColorMap for this viewport, then the value will be stored in the ColorMap. The selected color register is changed to match your specs. If the color value is unused then nothing will happen.

Lower order bits of the palette specification will be discarded, depending on the color palette resolution of the target graphics device. Use $f for the full value, $7 for 50%, etc. You can find out the palette range for your screen by querying the graphics data base.

See also

GetColorMap

  

Allocate and initialize Colormap

GetRGB4

  

Inquire value of entry in ColorMap.

SetRGB4CM

  

Set one color register for this ColorMap.


Documentation generated on: 2021-07-30