home *** CD-ROM | disk | FTP | other *** search
- /* Demonstrates multiple windows */
-
- #include <stdio.h>
- #include <math.h>
-
- main()
- {
- int i,j;
- float vmin,vmax;
- char text[3];
-
- /* Divide screen into 16 regions */
-
- plstar(4,4);
- plschr(0.0,3.5);
- plfont(4);
-
- for (i=0; i<=15; i++) {
- sprintf(text,"%d",i);
- pladv(0);
- vmin = 0.1;
- vmax = 0.9;
- for (j=0; j<=2; j++) {
- plvpor(vmin,vmax,vmin,vmax);
- plwind(0.0,1.0,0.0,1.0);
- plbox("bc",0.0,0,"bc",0.0,0);
- vmin = vmin + 0.1;
- vmax = vmax - 0.1;
- }
- plptex(0.5,0.5,1.0,0.0,0.5,text);
- }
-
- plend();
- }
-
-