Blitz3D+ Command Reference

RequestedRed ( )

Parameters

None.

Description

Returns the red component (0-255) of the colour chosen in the most recent RequestColor.

RequestColor does not return the picked colour itself - it returns 1 for OK and 0 for cancel, and stores the choice for RequestedRed, RequestedGreen and RequestedBlue to read. Only a confirmed pick updates the stored colour: cancelling leaves the previous values untouched, and before any RequestColor at all the three components read 255 (white).

If RequestColor() Then SetPanelColor swatch,RequestedRed(),RequestedGreen(),RequestedBlue()

Requires Extended mode.

See also: RequestedGreen, RequestedBlue, RequestColor.

Index