GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
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 SPDX-FileCopyrightText: 2003-2014 Per Henrik Johansen
7 SPDX-FileCopyrightText: GRASS Development Team
8 SPDX-License-Identifier: GPL-2.0-or-later
9
10 \author Per Henrik Johansen (original contributor)
11 \author Glynn Clements
12 */
13
14#include <grass/gis.h>
15#include "pngdriver.h"
16
17/*!
18 \brief Identify a color
19
20 Identify a color that has been set in the reset_color() (found in Reset_clr.c
21 file in this directory). Subsequent graphics calls will use this color.
22
23 Called by:
24 Color() in ../lib/Color.c
25
26 \param r red color value
27 \param g green color value
28 \param b blue color value
29 */
30void PNG_color_rgb(int r, int g, int b)
31{
32 png.current_color = png_get_color(r, g, b, 0);
33}
unsigned int png_get_color(int r, int g, int b, int a)
float g
Definition named_colr.c:7
void PNG_color_rgb(int r, int g, int b)
Identify a color.
struct png_state png
GRASS png display driver - header file.
double b
Definition r_raster.c:37
double r
Definition r_raster.c:37