fg_setrgb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_setrgb (int number, int red, int green, int blue);

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

procedure fg_setrgb (number, red, green, blue : integer);

Description

The fg_setrgb() function defines 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 define 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_setrgb(), a logical palette must be defined and realized.

See also

fg_getrgb(), fg_mapdacs(), fg_maprgb(), fg_realize(), fg_setdacs()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.