getgp2(3f) - [M_pixel] Gets the current graphics position in world coords. (LICENSE:PD)
Synopsis
Description
Returns
Example
Author
License
definition:
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_pixel implicit none real :: X,Y call prefsize(20,20) call vinit() 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
John S. Urban
Public Domain
Nemo Release 3.1 | getgp2 (3m_pixel) | April 21, 2023 |