Color.c 358 B

12345678910111213141516
  1. /*
  2. * Identify a color that has been set in the reset_color() (found in Reset_clr.c
  3. * file in this directory). Subsequent graphics calls will use this color.
  4. *
  5. * Called by:
  6. * Color() in ../lib/Color.c
  7. */
  8. #include <grass/gis.h>
  9. #include "pngdriver.h"
  10. void PNG_color_rgb(int r, int g, int b)
  11. {
  12. png.current_color = png_get_color(r, g, b, 0);
  13. }