GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
color_init.c File Reference

Raster Library - Initialize Colors structure. More...

#include <grass/gis.h>
#include <grass/raster.h>
Include dependency graph for color_init.c:

Go to the source code of this file.

Functions

void Rast_init_colors (struct Colors *colors)
 Initialize color structure. More...
 

Detailed Description

Raster Library - Initialize Colors structure.

(C) 2001-2009 by 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.

Author
Original author CERL

Definition in file color_init.c.

Function Documentation

◆ Rast_init_colors()

void Rast_init_colors ( struct Colors colors)

Initialize color structure.

The colors structure is initialized for subsequent calls to Rast_add_c_color_rule() and Rast_set_c_color().

Parameters
colorspointer to Colors structure

Definition at line 25 of file color_init.c.

Referenced by Rast_abs_log_colors(), and Rast_log_colors().