Core Function ColourDialog
From Sputnik Wiki
ColourDialog( )
Contents |
Description
Allows the user to select a colour and allows you to get the RED, GREEN, BLUE etc values.
Parameters
None
Return Value
Success: Returns array with details.
Failure: Returns null (the user pressing cancel also returns null).
Remarks
Example
$Value = ColourDialog(); if($Value) { my List ( $Red, $Green, $Blue, $Alpha ) = $Value; my $Colour = RGB($Red, $Green, $Blue); // Pack the colour for use in GUI etc println("Colour Red '$Red' Green '$Green' Blue '$Blue' Alpha '$Alpha' (RGB '$Colour')"); } else { println("No colour selected"); }