<doc>
  <legacy_id>2273</legacy_id>
  <name>penColor</name>
  <type>property</type>
  <syntax>
    <example>set the penColor to {<i>colorName</i> |<i> RGBColor</i>}</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
    <category>Developing with LiveCode</category>
  </classification>
  <references>
    <command tag="choose">choose Command</command>
    <property tag="brushColor">brushColor Property</property>
    <property tag="penPattern">penPattern 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 the color used for drawing with the <glossary tag="paint tool">paint tools</glossary>.</summary>
  <examples>
    <example>set the penColor to "blue"</example>
    <example>set the penColor to 255,255,255 <code><i>-- white</i></code></example>
  </examples>
  <description>
    <p>Use the <b>penColor</b> <glossary tag="property">property</glossary> to change the color used with the <keyword tag="pencil">pencil</keyword>, <keyword tag="line">line</keyword>, and <keyword tag="curve">curve</keyword> <glossary tag="paint tool">paint tools</glossary>, and for the borders of shapes.</p><p/><p><b>Value:</b></p><p>The <b>penColor</b> is a <href tag="reference/color_reference.rev">color reference</href>.</p><p/><p>The <i>colorName</i> is any standard color name.</p><p/><p>The <i>RGBColor</i> consists of three comma-separated <glossary tag="integer">integers</glossary> 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 <glossary tag="hexadecimal">hexadecimal</glossary> numbers, one for each of red, green, and blue.</p><p/><p>By default, the <b>penColor</b> is "0,0,0" (black).</p><p/><p><b>Comments:</b></p><p>If the <b>penPattern</b> has been set since the last time the <b>penColor</b> was set, the pattern is used instead of the color specified by <b>penColor</b>. In other words, the last-set <glossary tag="property">property</glossary> takes priority.</p>
  </description>
</doc>