summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/color.g.page
blob: 030d6889f1e9c8ef2c1330920739940502e41e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0"?>
<page xmlns="http://projectmallard.org/1.0/" id="color.g" type="topic" style="xslt-template"><info><link type="guide" xref="color" group="templates"/><link type="guide" xref="templates" group="color"/><revision version="3.28" date="2016-01-03" status="final"/><desc>Extract the green component of a color.</desc></info><title>color.g</title><p>Extract the green component of a color.</p>
  
  
  <synopsis><title>Parameters</title><terms>
    <item>
      <title><code>color</code></title>
      <p>A color specified in hexidecimal, <code>rgb()</code>, or <code>rgba()</code>.</p>
    </item>
  </terms></synopsis>
  <p>This template extracts the green portion of a color, returning a number between 0 and 255. It accepts six-digit and three-digit hexidecimal color codes, colors specified with <code>rgb()</code>, and colors specified with <code>rgba()</code>. It does not accept HSL or named HTML colors.</p>
<list style="compact"><title>Calls Templates</title><item><p><link xref="color.hex2dec"/></p></item></list></page>