getgp2(3f) - [M_draw:POSITION] Gets the current graphics position in world coordinates (LICENSE:PD)
Synopsis
Description
Returns
Examples
subroutine getgp2(x, y)
real,intent(out) :: x,y
Gets the current graphics position in world coords.
X X coordinate of current position Y Y coordinate of current position
Sample program:
program demo_getgp2 use M_draw implicit none real :: X,Y call prefsize(20,20) call vinit( ) ! start graphics using device $M_DRAW_DEVICE call ortho2(-100.0,100.0,-100.0,100.0) call move2(0.0,0.0) call draw2(96.5,98.333)Resultscall getgp2(X,Y) write(*,*)CURRENT POSITION (X,Y)=,X,Y
call vexit() end program demo_getgp2
CURRENT POSITION (X,Y)= 96.5000000 98.3330002
Nemo Release 3.1 | getgp2 (3) | February 23, 2025 |