<doc>
  <legacy_id>2310</legacy_id>
  <name>foregroundPixel</name>
  <type>property</type>
  <syntax>
    <example>set the foregroundPixel of <i>object</i> to <i>colorNumber</i></example>
  </syntax>
  <library></library>
  <objects>
    <stack/>
    <card/>
    <group/>
    <field/>
    <button/>
    <graphic/>
    <scrollbar/>
    <player/>
    <image/>
  </objects>
  <synonyms>
    <synonym>forePixel</synonym>
    <synonym>firstPixel</synonym>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <property tag="borderPixel">borderPixel 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 which entry in the <glossary tag="color table">color table</glossary> is used for an <glossary tag="object">object's</glossary> text and borders.</summary>
  <examples>
    <example>set the foregroundPixel of this stack to 0</example>
  </examples>
  <description>
    <p>Use the <b>foregroundPixel</b> <glossary tag="property">property</glossary> to change the foreground color of an <glossary tag="object">object</glossary> when the <glossary tag="bit depth">bit depth</glossary> of the screen is 8 <glossary tag="bit">bits</glossary> (256 colors) or less.</p><p/><p><b>Value:</b></p><p>The <b>foregroundPixel</b> of an <glossary tag="object">object</glossary> is an <keyword tag="integer">integer</keyword> between zero and<code> (the screenColors - 1)</code>. It designates an entry in the current color table.</p><p/><p>By default, the <b>foregroundPixel</b> for all <glossary tag="object">objects</glossary> is empty.</p><p/><p><b>Comments:</b></p><p>The <b>foregroundPixel</b> <glossary tag="property">property</glossary> specifies which entry in the <glossary tag="color table">color table</glossary> is used for an <glossary tag="object">object's</glossary> foreground color. It is similar to the <property tag="foregroundColor">foregroundColor</property> <glossary tag="property">property</glossary>, but is specified as an entry in the current <glossary tag="color table">color table</glossary>, rather than as a <href tag="reference/color_reference.rev">color reference</href>.</p><p/><p>The color table can be set by changing the <b>colorMap</b> <glossary tag="property">property</glossary>.</p>
  </description>
</doc>