+ <p>Use the <b>answer color</b> <glossary tag="command">command</glossary> to select a custom color.</p><p/><p><b>Parameters:</b></p><p>The <i>startingColor</i> is a <href tag="reference/color_reference.rev">color reference</href> consisting of one of the following:</p><p>* a standard color name</p><p>* three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue</p><p>* an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.</p><p/><p><b>Comments:</b></p><p>The <b>answer color</b> <glossary tag="command">command</glossary> displays a <glossary tag="dialog box">dialog box</glossary> where the user can select a color. (This dialog box is displayed by the operating system, not by LiveCode.)</p><p/><p>The color the user chooses is placed in the <b>it</b> <glossary tag="variable">variable</glossary>. If the user cancels the <glossary tag="dialog box">dialog</glossary>, the <keyword tag="it">it</keyword> <glossary tag="variable">variable</glossary> is set to empty, and the <function tag="result">result</function> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> "Cancel".</p><p/><p>If you specify a <i>startingColor</i>, the dialog box displays that color by default.</p><p/><p>The color is returned in the form of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue. This format can be used directly to set any color property.</p><p/><p><b>Changes:</b></p><p>The option to specify a <i>startingColor</i> was introduced in version 1.1.1. In previous versions, the <glossary tag="dialog box">dialog box</glossary> displayed white by <keyword tag="default">default</keyword>.</p>
0 commit comments