color_shift.c 553 B

1234567891011121314151617181920212223242526
  1. /*!
  2. * \file 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. #include <grass/gis.h>
  14. #include <grass/raster.h>
  15. void Rast_shift_c_colors(CELL shift, struct Colors *colors)
  16. {
  17. colors->shift += (DCELL) shift;
  18. }
  19. void Rast_shift_d_colors(DCELL shift, struct Colors *colors)
  20. {
  21. colors->shift += shift;
  22. }