home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / gwin_433.lzh / Gwin / exsrc.lzh / clipdemo.c < prev    next >
C/C++ Source or Header  |  1991-01-12  |  547b  |  30 lines

  1. main()
  2. {
  3. float x, y;
  4. int event;
  5. char key;
  6.  
  7.    ustart("high2",30.,600.,100.,300.);
  8.    upset("colo",1.0);
  9.    uprint(5.,80.,"Place cursor in yellow area");
  10.    uprint(5.,75.,"and press left mouse button.");
  11.    udarea(50.,80.,50.,100.);
  12.    uwindo(0.,50.,0.,50.);
  13.    upset("colo",5.0);
  14.    uset("fill");
  15.    uoutln();
  16.    uset("nofi");
  17.    upset("colo",4.0);
  18.    while (1){
  19.       ugrin(&x,&y);
  20.       umove(x-5.0,y);
  21.       udraw(x+5.0,y);
  22.       umove(x,y-5.0);
  23.       udraw(x,y+5.0);
  24.       uset("fill");
  25.       uplygn(x,y,4.0,4.0);
  26.       upset("nofi");
  27.    }
  28. }
  29.  
  30.