(C) 1998 AROS - The Amiga Research OS


NAME
#include <graphics/view.h>
#include <proto/graphics.h>

void SetRGB32 (vp , n , r , g , b)

LOCATION
In GfxBase at offset 142

SYNOPSIS
struct ViewPort * vp
ULONG n
ULONG r
ULONG g
ULONG b

FUNCTION
Changes a single color of a viewport.

INPUTS
vp
Modify this viewport
n
Change this color. If the color is outside the range of valid colors, it will be ignored.
r, g, b
The new values for the red, green and blue. The valid range is from 0x000000 (no intensity) to 0xFFFFFFFF (full intensity).

RESULT
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.

EXAMPLE

SEE ALSO

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

BUGS

INTERNALS

HISTORY