home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d571
/
gwin.lha
/
Gwin
/
Examples
/
rubberbandline.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-22
|
439b
|
33 lines
#include "gwin.user.h"
main()
{
float x,y,xold,yold;
USTART("high2",0.,640.,0.,400.);
uset(G,"comp");
upset(G,"colo",1.0);
uprint(G,40.0,90.0,"MOVE MOUSE");
xold = 50.;
yold = 50.;
uset(G,"ncli");
while (1==1){
if(ugrinl(G,&x,&y,&uuev)){UEND();exit(0);};
umove(G,50.,50.);
udraw(G,xold,yold);
umove(G,50.,50.);
udraw(G,x,y);
xold = x;
yold = y;
}
UEND();
}