GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
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 * (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
17void Rast_shift_c_colors(CELL shift, struct Colors *colors)
18{
19 colors->shift += (DCELL)shift;
20}
21
22void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
23{
24 colors->shift += shift;
25}
void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
Definition color_shift.c:22
void Rast_shift_c_colors(CELL shift, struct Colors *colors)
Definition color_shift.c:17
double DCELL
Definition gis.h:635
int CELL
Definition gis.h:634
Definition gis.h:692
DCELL shift
Definition gis.h:694