<doc>
  <legacy_id>1739</legacy_id>
  <name>colors</name>
  <type>property</type>
  <syntax>
    <example>set the colors of <i>object</i> to <i>colorsList</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <command tag="answer color">answer color Command</command>
    <function tag="mouseColor">mouseColor Function</function>
    <keyword tag="colorPalette">colorPalette Keyword</keyword>
    <property tag="topColor">topColor Property</property>
    <property tag="linkColor">linkColor Property</property>
    <property tag="linkHiliteColor">linkHiliteColor Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies all the colors of an <glossary tag="object">object</glossary>, in shorthand form.</summary>
  <examples>
    <example>put the colors of this stack into field "Colors"</example>
    <example>set the colors of last button to field "Colors"</example>
    <example>set the colors of this stack to the colors of stack "Home"</example>
  </examples>
  <description>
    <p>Use the <b>colors</b> <glossary tag="property">property</glossary> to get all eight basic color <property tag="properties">properties</property> at once, or to set the colors of one <glossary tag="object">object</glossary> to be the same as the colors of another <glossary tag="object">object</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>colors</b> of an <glossary tag="object">object</glossary> is a list of <href tag="reference/color_reference.rev">color references</href>, one per line.</p><p/><p>A color reference is any standard color name; or three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue; or 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>The <b>colors</b> of an <keyword tag="image">image</keyword> contains as many lines as there are colors used in the <keyword tag="image">image</keyword>. The <b>colors</b> of all other <glossary tag="object">objects</glossary> contains eight lines, some of which may be empty.</p><p/><p><b>Comments:</b></p><p>For objects other than images, you can set all these colors individually; the <b>colors</b> <glossary tag="property">property</glossary> simply provides a shorter method of dealing with all of them at once. Each <keyword tag="line">line</keyword> of the <b>colors</b> corresponds to one of the following color <property tag="properties">properties</property>:</p><p/><p>        Line 1: the <b>foregroundColor</b></p><p>        Line 2: the <b>backgroundColor</b></p><p>        Line 3: the <b>hiliteColor</b></p><p>        Line 4: the <b>borderColor</b></p><p>        Line 5: the <b>topColor</b></p><p>        Line 6: the <b>bottomColor</b></p><p>        Line 7: the <b>shadowColor</b></p><p>        Line 8: the <b>focusColor</b></p><p/><p>If you leave a line blank when setting the <b>colors</b>, the color <glossary tag="property">property</glossary> corresponding to that <keyword tag="line">line</keyword> is left unchanged.</p><p/><p>If the <b>colors</b> <glossary tag="property">property</glossary> of an <glossary tag="object">object</glossary> reports a blank line, that color is not set for the individual <glossary tag="object">object</glossary>, but is <glossary tag="inheritance">inherited</glossary> from the <glossary tag="object">object's</glossary> <property tag="owner">owner</property>. Use the form<code> the effective colors of <i>object</i> </code>to obtain the colors used for the object, whether set for the <glossary tag="object">object</glossary> or <glossary tag="inheritance">inherited</glossary>.</p><p/><p>If a pattern is set for an object, that pattern is used instead of the corresponding color for that object.</p>
  </description>
</doc>