GRASS GIS 8 Programmer's Manual
8.5.0dev(2025)-565e82de51
Main Page
Related Pages
Data Structures
Data Structures
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
Enumerations
a
c
d
e
h
i
j
l
m
n
o
p
r
s
t
v
y
Enumerator
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
color_init.c
Go to the documentation of this file.
1
/*!
2
\file lib/raster/color_init.c
3
4
\brief Raster Library - Initialize Colors structure
5
6
(C) 2001-2009 by 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 Original author CERL
12
*/
13
14
#include <
grass/gis.h
>
15
#include <
grass/raster.h
>
16
17
/*!
18
\brief Initialize color structure
19
20
The <i>colors</i> structure is initialized for subsequent calls
21
to Rast_add_c_color_rule() and Rast_set_c_color().
22
23
\param colors pointer to Colors structure
24
*/
25
void
Rast_init_colors
(
struct
Colors
*colors)
26
{
27
G_zero
(colors,
sizeof
(
struct
Colors
));
28
29
colors->
cmax
= -1;
30
colors->
fixed
.
max
= -1;
31
colors->
modular
.
max
= -1;
32
}
Rast_init_colors
void Rast_init_colors(struct Colors *colors)
Initialize color structure.
Definition:
color_init.c:25
G_zero
void G_zero(void *, int)
Zero out a buffer, buf, of length i.
Definition:
gis/zero.c:23
gis.h
raster.h
Colors
Definition:
gis.h:687
Colors::cmax
DCELL cmax
Definition:
gis.h:703
Colors::fixed
struct _Color_Info_ fixed
Definition:
gis.h:700
Colors::modular
struct _Color_Info_ modular
Definition:
gis.h:701
_Color_Info_::max
DCELL max
Definition:
gis.h:684
lib
raster
color_init.c
Generated on Thu Mar 20 2025 07:33:23 for GRASS GIS 8 Programmer's Manual by
1.9.1