home *** CD-ROM | disk | FTP | other *** search
- /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
- #include <stdio.h>
- #define EXTERN extern
- #include <typedef.h>
- /* program DrawPoints; */
-
- extern int InitGraphic();
- extern int DrawBorder();
- extern int LeaveGraphic();
- extern int DrawPoint();
-
-
- main()
- {
- int i;
-
-
- InitGraphic(); /* init the system and screen */
- DefineWorld(1, 0., 0., 1000., 1000.);
- SelectWorld(1);
- SelectWindow(1);
- SetBackground(0x11);
- DrawBorder();
-
- for (i = 1; i <= 20; i++) {
- SetLineStyle(i%5);
- DrawLine(50.*i, 0., 50.*i, 1000.);
- DrawLine(0., 50.*i, 1000., 50.*i);
- }
-
- inkey();
-
- LeaveGraphic();
- }
-