File: plgcol0.html

package info (click to toggle)
plplot 5.15.0%2Bdfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 31,004 kB
  • sloc: ansic: 79,703; xml: 28,583; cpp: 20,033; ada: 19,456; tcl: 12,081; f90: 11,431; ml: 7,276; java: 6,863; python: 6,792; sh: 3,274; perl: 828; lisp: 75; makefile: 61; sed: 34; fortran: 6
file content (45 lines) | stat: -rw-r--r-- 4,503 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>plgcol0: Returns 8-bit RGB values for given color index from cmap0</title><link rel="stylesheet" type="text/css" href="stylesheet.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="Documentation of the PLplot plotting software"><link rel="up" href="API.html" title="Chapter 17. The Common API for PLplot"><link rel="prev" href="plgcmap1_range.html" title="plgcmap1_range: Get the cmap1 argument range for continuous color plots"><link rel="next" href="plgcol0a.html" title="plgcol0a: Returns 8-bit RGB values and PLFLT alpha transparency value for given color index from cmap0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">
      <code class="function">plgcol0</code>: Returns 8-bit RGB values for given color
      index from cmap0
    </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="plgcmap1_range.html">Prev</a> </td><th width="60%" align="center">Chapter 17. The Common API for PLplot</th><td width="20%" align="right"> <a accesskey="n" href="plgcol0a.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h4 class="title"><a name="plgcol0"></a>
      <code class="function">plgcol0</code>: Returns 8-bit RGB values for given color
      index from cmap0
    </h4></div></div></div><p>
      </p><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">
	    <b class="fsfunc">plgcol0</b>
	  (</code></td><td><var class="pdparam">icol0</var>, </td></tr><tr><td> </td><td><var class="pdparam">r</var>, </td></tr><tr><td> </td><td><var class="pdparam">g</var>, </td></tr><tr><td> </td><td><var class="pdparam">b</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><p>
    </p><p>
      Returns 8-bit RGB values (0-255) for given color from cmap0 (see
      <a class="xref" href="color.html#color-map-0" title="Color Map0">the section called “Color Map0”</a>).  Values are
      negative if an invalid color id is given.
    </p><div class="variablelist"><dl class="variablelist"><dt><span class="term">
	  <em class="parameter"><code>icol0</code></em>
	  (<code class="literal"><a class="link" href="c.html#PLINT-type"><code class="function">PLINT</code></a></code>, input)
	</span></dt><dd><p>
	    Index of desired cmap0 color.
	  </p></dd><dt><span class="term">
	  <em class="parameter"><code>r</code></em>
	  (<code class="literal"><a class="link" href="c.html#PLINT_NC_SCALAR-type"><code class="function">PLINT_NC_SCALAR</code></a></code>, output)
	</span></dt><dd><p>
	    Returned value of the 8-bit red value.
	  </p></dd><dt><span class="term">
	  <em class="parameter"><code>g</code></em>
	  (<code class="literal"><a class="link" href="c.html#PLINT_NC_SCALAR-type"><code class="function">PLINT_NC_SCALAR</code></a></code>, output)
	</span></dt><dd><p>
	    Returned value of the 8-bit green value.
	  </p></dd><dt><span class="term">
	  <em class="parameter"><code>b</code></em>
	  (<code class="literal"><a class="link" href="c.html#PLINT_NC_SCALAR-type"><code class="function">PLINT_NC_SCALAR</code></a></code>, output)
	</span></dt><dd><p>
	    Returned value of the 8-bit blue value.
	  </p></dd></dl></div><p>
      Redacted form: <code class="function">plgcol0(icol0, r, g, b)</code>
    </p><p>
      This function is used in example 2.
    </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="plgcmap1_range.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="API.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="plgcol0a.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">
      <code class="function">plgcmap1_range</code>: Get the cmap1 argument
      range for continuous color plots
     </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 
      <code class="function">plgcol0a</code>: Returns 8-bit RGB values and PLFLT alpha
      transparency value for given color index from cmap0
    </td></tr></table></div></body></html>