Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 86de73cd0961932e7aca64f21352ffa6 > files > 181

grads-2.0.2-1.fc18.x86_64.rpm

<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>GrADS Command: set rgb</title>
<style type="text/css">
<!--
.style1 {color: #990000}
-->
</style>
</head>
<body bgcolor="e0f0ff" text="#000000">

<h2><b>set rgb</b></h2>

<p>
This command allows the user to define a new color within GrADS. The syntax is:

<p>
<code>set rgb <i>color# R G B</i></code>

<p>
where:
<ul>
<code><i>color#</i>&nbsp;&nbsp;</code>is the color number; it can range from 16 to 99  <span class="style1">(or 255 -- see Usage Note #1) </span><br>
<code><i>R</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> is the Red value (0-255) <br>
<code><i>G</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> is the Green value (0-255) <br>
<code><i>B</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code> is the Blue value 0-255) </br>
</ul>

<p>
The new color is referred to by its <code><i>color#</i></code>
in any GrADS command that allows specification of colors.

<p>
<h3>Usage Notes</h3>

<ol>
<li>The <code><i>color#</i></code> must be a value between  <code>16</code> and <code>99</code> --  <a href="16colors.html"><code>0</code> to <code>15</code> are
    predefined</a>. 
    <br>
     <span class="style1">As of GrADS version 2.0.a6, the maximum  number 
    of colors increased from 99 to 255.<br>
    <br>
    </span>
<li>The GrADS metafile-to-postscript translator <a
href="gradutilgxps.html"><code>gxps</code></a> will make use of any
new color settings although the output colors will be
printer-dependent and should be checked for the desired
rendering. When converting new color settings into grayscales, <a
href="gradutilgxps.html"><code>gxps</code></a> will translate the
GREEN intensity ONLY into a new greyscale value. Note that <a
href="gradutilgxps.html"><code>gxps</code></a> does have a predefined
mapping between color values from 0 to 15 such that the <a
href="16colors.html">predefined rainbow sequence</a> is rendered into a
fairly pleasing greyscale gradation; this cannot be done for newly
defined colors.<br>
<br>
<li>For more details on using defined colors, see the section in the
User's Guide on <a href="colorcontrol.html">controlling colors in
GrADS</a>.
</ol>

<p>
<h3>Examples</h3>

<P>
<code>set rgb 50 200 200 200 </code>

<p>
Defines a new color number, <code>50</code>, and
assign a color to it. In this case, the color would be a light gray. 

<p>


</body>
</html>