Graphics Subroutine: Moves the current graphics position to a specified point. No drawing occurs.
Module: USE DFLIB
Syntax
TYPE xycoord
INTEGER(2) xcoord ! x coordinate
INTEGER(2) ycoord ! y coordinate
END TYPE xycoord
TYPE wxycoord
REAL(8) wx ! x window coordinate
REAL(8) wy ! y window coordinate
END TYPE wxycoord
MOVETO sets the current graphics position to the viewport coordinate (x, y). MOVETO_W sets the current graphics position to the window coordinate (wx, wy).
MOVETO and MOVETO_W assign the coordinates of the previous position to t and wt, respectively.
Compatibility
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
See Also: GETCURRENTPOSITION, LINETO, OUTGTEXT
Example
! Build as QuickWin or Standard Graphics ap.
USE DFLIB
INTEGER(2) status, x, y
INTEGER(4) result
TYPE (xycoord) xy
RESULT = SETCOLORRGB(#FF0000) ! blue
x = 60
! Draw a series of lines
DO y = 50, 92, 3
CALL MOVETO(x, y, xy)
status = LINETO(INT2(x + 20), y)
END DO
END