fg_getrgb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_getrgb (int number, int *red, int *green, int *blue);

Sub fg_getrgb (ByVal number As Long, red As Long, green As Long, blue As Long)

procedure fg_getrgb (number : integer; var red, green, blue : integer);

Description

The fg_getrgb() function returns the red, green, and blue color components for a specified color in the active logical palette or virtual palette.

Parameters

number is the color number, between 0 and 255.

red, green, and blue respectively receive the red, green, and blue components of the specified color. Each color component is a value between 0 and 255; increasing values produce more intense colors.

Return value

none

Restrictions

Before calling fg_getrgb(), a logical palette must be defined and realized.

See also

fg_getdacs(), fg_realize(), fg_setrgb()

Examples

Cube

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.