Core Function ColourDialog
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ColourDialog( ) </pre> === Description === Allows the user to select a colour and allows you to get the RED, GREEN, BLUE etc values. === Parameters === None === Return...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 15: | Line 15: | ||
Success: Returns array with details. | Success: Returns array with details. | ||
− | Failure: Returns | + | Failure: Returns null (the user pressing cancel also returns null). |
=== Remarks === | === Remarks === |
Latest revision as of 12:37, 14 June 2015
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"); }