DQBfindPalCol
FUNCTION

Prototype

DECLARE FUNCTION DQBfindPalCol (Pal AS STRING, Red AS INTEGER,
                                Green AS INTEGER, Blue AS INTEGER)

Parameters

Pal - Palette to scan

Red - Red hue of the color to find

Green - Green hue of the color to find

Blue - Blue hue of the color to find

Returns

An INTEGER value ranging 0-255, holding the index of the color found

Description

This function works exactly like DQBfindCol, except for the fact that this one searches for a color into a specified palette, not necessarly on the current one. This also avoids the bad looking flickering of the DQBfindCol function. The palette should be get by the DQBgetPal, DQBloadLayer or similar routines that use the standard DirectQB palette format (see appendix C for details).

Notes:

See also DQBfindCol