ret = ColorRequest(title$[, color])
The color selected by the user will be returned in RGB format. If the user cancels the request, -1 will be returned.
Please note that this command requires reqtools.library to be installed on AmigaOS and compatibles.
Starting with Hollywood 6.0 you can pass an empty string ("") in the first parameter. In that case, the requester will use the title specified in the @APPTITLE preprocessor command.
r = ColorRequest("Select a color") If r = -1 Print("Requester cancelled!") Else SetFillStyle(#FILLCOLOR) Box(0, 0, 640, 480, r) EndIfAsk the user for a color and then draws a filled rectangle using the selected color.