fg_setcolorrgb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_setcolorrgb (int red, int green, int blue);

Sub fg_setcolorrgb (ByVal red As Long, ByVal green As Long, ByVal blue As Long)

procedure fg_setcolorrgb (red, green, blue : integer);

Description

The fg_setcolorrgb() function establishes the current color by specifying its RGB components. When used with a 256-color virtual buffer, fg_setcolorrgb() will use the closest matching color in the logical palette.

Parameters

red, green, and blue respectively specify the color's red, green, and blue components. These values must each be between 0 and 255; increasing values produce more intense colors.

Return value

none

Restrictions

none

See also

fg_maprgb(), fg_setcolor(), fg_setrgb()

Examples

Colors, Columns, Cube, Dcb, FirstDD

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.