GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
pngdriver/color.c
Go to the documentation of this file.
1 /*!
2  \file lib/pngdriver/color.c
3 
4  \brief GRASS png display driver - PNG_color_rgb
5 
6  (C) 2003-2014 by Per Henrik Johansen and the GRASS Development Team
7 
8  This program is free software under the GNU General Public License
9  (>=v2). Read the file COPYING that comes with GRASS for details.
10 
11  \author Per Henrik Johansen (original contributor)
12  \author Glynn Clements
13 */
14 
15 #include <grass/gis.h>
16 #include "pngdriver.h"
17 
18 /*!
19  \brief Identify a color
20 
21  Identify a color that has been set in the reset_color() (found in Reset_clr.c
22  file in this directory). Subsequent graphics calls will use this color.
23 
24  Called by:
25  Color() in ../lib/Color.c
26 
27  \param r red color value
28  \param g green color value
29  \param b blue color value
30 */
31 
32 void PNG_color_rgb(int r, int g, int b)
33 {
34  png.current_color = png_get_color(r, g, b, 0);
35 }
int current_color
Definition: pngdriver.h:34
GRASS png display driver - header file.
struct png_state png
unsigned int png_get_color(int r, int g, int b, int a)
Definition: color_table.c:120
double b
Definition: r_raster.c:39
float g
Definition: named_colr.c:8
void PNG_color_rgb(int r, int g, int b)
Identify a color.
double r
Definition: r_raster.c:39