grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

color.c File Reference

GRASS png display driver - PNG_color_rgb. More...

#include <grass/gis.h>
#include "pngdriver.h"
Include dependency graph for color.c:

Go to the source code of this file.


void PNG_color_rgb (int r, int g, int b)
 Identify a color. More...

Detailed Description

GRASS png display driver - PNG_color_rgb.

(C) 2003-2014 by Per Henrik Johansen and the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Per Henrik Johansen (original contributor)
Glynn Clements

Definition in file color.c.

Function Documentation

◆ PNG_color_rgb()

void PNG_color_rgb ( int  r,
int  g,
int  b 

Identify a color.

Identify a color that has been set in the reset_color() (found in Reset_clr.c file in this directory). Subsequent graphics calls will use this color.

Called by: Color() in ../lib/Color.c

rred color value
ggreen color value
bblue color value

Definition at line 32 of file color.c.

References b, png_state::current_color, g, png, png_get_color(), and r.

Referenced by PNG_Driver().