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
psdriver/color.c
Go to the documentation of this file.
1
#include <
grass/gis.h
>
2
#include "
psdriver.h
"
3
4
void
PS_Color
(
int
r
,
int
g
,
int
b
)
5
{
6
if
(
ps
.
true_color
)
7
output
(
"%d %d %d COLOR\n"
,
r
,
g
,
b
);
8
else
9
output
(
"%d GRAY\n"
, (
int
)(
r
* 0.299 +
g
* 0.587 +
b
* 0.114));
10
}
gis.h
g
float g
Definition:
named_colr.c:7
PS_Color
void PS_Color(int r, int g, int b)
Definition:
psdriver/color.c:4
ps
struct ps_state ps
Definition:
psdriver/graph_set.c:26
output
void output(const char *fmt,...)
Definition:
psdriver/graph_set.c:232
psdriver.h
b
double b
Definition:
r_raster.c:39
r
double r
Definition:
r_raster.c:39
ps_state::true_color
int true_color
Definition:
psdriver.h:14
lib
psdriver
color.c
Generated on Thu Mar 20 2025 07:33:23 for GRASS GIS 8 Programmer's Manual by
1.9.1