home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c005 / 4.ddi / C / GRAMOVE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-08-05  |  822 b   |  38 lines

  1. /**
  2. *
  3. * Name        gramove -- Absolute move
  4. *
  5. * Synopsis    npts = gramove(ppos,color);
  6. *
  7. *        int npts      Number of points plotted
  8. *        PT  *ppos      Coordinates for the end of the line
  9. *        int color      Color of the line
  10. *
  11. * Description    GRAMOVE draws a line on the current display page from
  12. *        the home position to the point specified by *ppos using
  13. *        the color specified.
  14. *
  15. *        The external variable b_home is set equal to the last
  16. *        point plotted (which is *ppos).
  17. *
  18. * Returns    npts          Number of points plotted to draw the line.
  19. *
  20. * Version    3.0 (C)Copyright Blaise Computing Inc.    1983, 1984, 1986
  21. *
  22. **/
  23.  
  24. #include <bgraph.h>
  25.  
  26. int gramove(ppos,color)
  27. PT  *ppos;
  28. int color;
  29. {
  30.     int npts;
  31.  
  32.     npts   = grline(&b_home,ppos,color);
  33.     b_home.x = ppos->x;
  34.     b_home.y = ppos->y;
  35.  
  36.     return(npts);
  37. }
  38.