Core Function ColourDialog

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(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...")
Newer edit →

Revision as of 17:35, 11 December 2011

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 empty array.

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");
}
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox