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
15void Rast_shift_c_colors(CELL shift, struct Colors *colors)
16{
17 colors->shift += (DCELL)shift;
18}
19
20void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
21{
22 colors->shift += shift;
23}
void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
Definition color_shift.c:20
void Rast_shift_c_colors(CELL shift, struct Colors *colors)
Definition color_shift.c:15
double DCELL
Definition gis.h:632
int CELL
Definition gis.h:631
Definition gis.h:689
DCELL shift
Definition gis.h:691