Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4515

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieves RGB components of a color</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ncurses-clrtoeol.html">ncurses_clrtoeol</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ncurses-color-set.html">ncurses_color_set</a></div>
 <div class="up"><a href="ref.ncurses.html">Ncurses Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ncurses-color-content" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ncurses_color_content</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5 &lt; 5.3.0, PECL ncurses &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">ncurses_color_content</span> &mdash; <span class="dc-title">Retrieves RGB components of a color</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.ncurses-color-content-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>ncurses_color_content</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$color</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$r</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$g</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter reference">&$b</code></span>
   )</div>

  <p class="para rdfs-comment">
   Retrieves the red, green, and blue components for the given color definition.
   Terminal color capabilities must be initialized with
    <span class="function"><a href="function.ncurses-start-color.html" class="function">ncurses_start_color()</a></span> prior to calling this function.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.ncurses-color-content-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">color</code></em></span>
     <dd>

      <p class="para">
       The number of the color to retrieve information for. May be one of the
       pre-defined color constants.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">r</code></em></span>
     <dd>

      <p class="para">
       A reference to which to return the red component of the color. The value
       returned to the reference will be between 0 and 1000.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">g</code></em></span>
     <dd>

      <p class="para">
       A reference to which to return the green component of the color. The value
       returned to the reference will be between 0 and 1000.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">b</code></em></span>
     <dd>

      <p class="para">
       A reference to which to return the blue component of the color. The value
       returned to the reference will be between 0 and 1000.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.ncurses-color-content-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <em>-1</em> if the function was successful, and
   <em>0</em> if ncurses or terminal color capabilities have not been
   initialized.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.ncurses-color-content-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="function"><a href="function.ncurses-init-color.html" class="function" rel="rdfs-seeAlso">ncurses_init_color()</a> - Define a terminal color</span></li>
    <li class="member"> <span class="function"><a href="function.ncurses-start-color.html" class="function" rel="rdfs-seeAlso">ncurses_start_color()</a> - Initializes color functionality</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ncurses-clrtoeol.html">ncurses_clrtoeol</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ncurses-color-set.html">ncurses_color_set</a></div>
 <div class="up"><a href="ref.ncurses.html">Ncurses Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>