draw.c 736 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*!
  2. \file lib/psdriver/draw.c
  3. \brief GRASS PS display driver
  4. (C) 2007-2008 by Glynn Clements and the GRASS Development Team
  5. This program is free software under the GNU General Public License
  6. (>=v2). Read the file COPYING that comes with GRASS for details.
  7. \author Glynn Clements
  8. */
  9. #include "psdriver.h"
  10. void PS_Begin(void)
  11. {
  12. output("NEW\n");
  13. }
  14. void PS_Move(double x, double y)
  15. {
  16. output("%f %f MOVE\n", x, y);
  17. }
  18. void PS_Cont(double x, double y)
  19. {
  20. output("%f %f CONT\n", x, y);
  21. }
  22. void PS_Close(void)
  23. {
  24. output("CLOSE\n");
  25. }
  26. void PS_Stroke(void)
  27. {
  28. output("STROKE\n");
  29. }
  30. void PS_Fill(void)
  31. {
  32. output("FILL\n");
  33. }
  34. void PS_Point(double x, double y)
  35. {
  36. output("%f %f POINT\n", x, y);
  37. }