<doc>
  <legacy_id>1451</legacy_id>
  <name>colorMap</name>
  <type>property</type>
  <syntax>
    <example>set the colorMap to <i>colorsList</i></example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
    <category>The System Environment</category>
  </classification>
  <references>
    <property tag="dontDither">dontDither Property</property>
    <property tag="borderPixel">borderPixel Property</property>
    <property tag="colorWorld">colorWorld Property</property>
    <function tag="screenColors">screenColors Function</function>
    <property tag="remapColor">remapColor Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary>Lists the colors in the current <glossary tag="color table">color table</glossary>.</summary>
  <examples>
    <example>set the colorMap to myMap</example>
    <example>if the colorMap is fixed then usePhotoIcons</example>
  </examples>
  <description>
    <p>Use the <b>colorMap</b> <glossary tag="property">property</glossary> to specify what colors LiveCode uses to draw its windows when the <glossary tag="bit depth">bit depth</glossary> of the screen is 8 <glossary tag="bit">bits</glossary> or less.</p><p/><p><b>Value:</b></p><p>The <b>colorMap</b> 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>colorMap</b> <glossary tag="property">property</glossary> contains the number of lines <glossary tag="return">returned</glossary> by the <function tag="screenColors">screenColors</function> <control_st tag="function">function</control_st>.</p><p/><p><b>Comments:</b></p><p>If the bit depth is greater than 8 bits, the <b>colorMap</b> <glossary tag="property">property</glossary> always reports "fixed".</p><p/><p>The number of lines in the <b>colorMap</b> <glossary tag="property">property</glossary> is set when the <glossary tag="application">application</glossary> starts up, and does not change if you change color depths while running the <glossary tag="application">application</glossary>.</p><p/><p>If you leave a line blank when setting the <b>colorMap</b>, the color corresponding to that <keyword tag="line">line</keyword> is left unchanged.</p><p/><p><code/><img src="202652"/> <b>Cross-platform note:</b><code/> On <glossary tag="Windows">Windows systems</glossary>, colors 110 and 246256 cannot be changed.</p><p/><p>On Unix systems, setting the <b>colorMap</b> <glossary tag="property">property</glossary> sets the <property tag="privateColors">privateColors</property> <glossary tag="property">property</glossary> to true.</p>
  </description>
</doc>