GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-5c00b4e944
cairodriver/color.c File Reference

GRASS cairo display driver - colors management. More...

#include "cairodriver.h"
Include dependency graph for cairodriver/color.c:

Go to the source code of this file.


void Cairo_Color (int r, int g, int b)
 Set source color (opaque) More...

Detailed Description

GRASS cairo display driver - colors management.

(C) 2007-2008 by Lars Ahlzen 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.

Lars Ahlzen <lars> (original contibutor)
Glynn Clements

Definition in file cairodriver/color.c.

Function Documentation

◆ Cairo_Color()

void Cairo_Color ( int  r,
int  g,
int  b 

Set source color (opaque)

This color will then be used for any subsequent drawing operation until a new source pattern is set.

rred color value
ggreen color value
bblue color value

Definition at line 27 of file cairodriver/color.c.

References b, cairo, CAIROCOLOR, g, G_debug(), and r.