GRASS 8 Programmer's Manual
8.6.0dev(2026)-8843f13794
Loading...
Searching...
No Matches
color_shift.c
Go to the documentation of this file.
1
/*!
2
* \file lib/raster/color_shift.c
3
*
4
* \brief Raster Library - Shift colors
5
*
6
* SPDX-FileCopyrightText: 2001-2009 GRASS Development Team
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*
9
* \author Original author CERL
10
*/
11
12
#include <
grass/gis.h
>
13
#include <
grass/raster.h
>
14
15
void
Rast_shift_c_colors
(
CELL
shift,
struct
Colors
*colors)
16
{
17
colors->
shift
+= (
DCELL
)shift;
18
}
19
20
void
Rast_shift_d_colors
(
DCELL
shift,
struct
Colors
*colors)
21
{
22
colors->
shift
+= shift;
23
}
Rast_shift_d_colors
void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
Definition
color_shift.c:20
Rast_shift_c_colors
void Rast_shift_c_colors(CELL shift, struct Colors *colors)
Definition
color_shift.c:15
gis.h
DCELL
double DCELL
Definition
gis.h:632
CELL
int CELL
Definition
gis.h:631
raster.h
Colors
Definition
gis.h:689
Colors::shift
DCELL shift
Definition
gis.h:691
lib
raster
color_shift.c
Generated on Tue Sep 15 2026 06:57:40 for GRASS 8 Programmer's Manual by
1.9.8