method colorDialog

int32 colorDialog(scene scene,uint32 initColor);

Argumente

Zurückgegebener Wert

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());
}