sceneThe scene object which the dialog is being opened from.
initColorInitial color to display in the color dialog.
Zurückgegebener Wert
int32
The method presents a system color chooser. The method returns current color
selected as an integer. If the dialog is canceled the color returned will be the
initial color passed in.
function onColorDialog()
{
// Open Color dialog with inital color red.
var color = appUtils.colorDialog(scene, 0xffff0000);
shell.print("selected color = 0x" + color.toString(16).toLowerCase());
}