home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
pcgraphc.zip
/
PENDEMO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-12-26
|
1KB
|
51 lines
#include <stdio.h>
#include "graph.h"
main()
{
int mode, stat;
double x, y;
mode = CGA_640x200; /* CGA 640x200 BW */
g_init (mode);
frame (); /* frame hard clip limit */
locate (10.0, 95.0, 10.0, 80.0 ); /* units in gdu's */
frame (); /* frame locate window */
show (0, 80.0, 0, 80.0); /* isotropic scaling */
/* changes from gdu's to udu's */
move (25.5, 35.0);
line_type (6,0);
pdir(0); /* set plotting direction for */
iplot (30, 0, -3); /* incremental and relative plots */
iplot (0, 30, -3);
iplot (-30, 0, -3);
iplot (0, -30, -3);
move (20, 20);
line_type (10,0);
pdir (60); /* now tilt by 60 deg. */
iplot (30, 0, -3); /* draw same figure */
iplot (0, 30, -3);
iplot (-30, 0, -3);
iplot (0, -30, -3);
move (5,10);
line_type (1,0);
labelf ("Press <cr> to\nundraw the boxes");
while (getch () != '\r') ;
pen (-1);
move (25.5, 35.0);
line_type (6,0);
pdir(0); /* set plotting direction for */
iplot (30, 0, -3); /* incremental and relative plots */
iplot (0, 30, -3);
iplot (-30, 0, -3);
iplot (0, -30, -3);
move (20, 20);
line_type (10,0);
pdir (60); /* now tilt by 60 deg. */
iplot (30, 0, -3); /* draw same figure */
iplot (0, 30, -3);
iplot (-30, 0, -3);
iplot (0, -30, -3);
exit(0);
}