home *** CD-ROM | disk | FTP | other *** search
- #include <splot.h>
- /* This is a region filling example */
- int i;
- main()
- {
- set(LINEWIDTH,0.1);
- set(FILLRULE,EVENODD);
- translate(10,15);
- for (i=0;i < 8;i++)
- {
- set(LINECOLOUR,i);
- leaf();
- rotate(45);
- }
- }
-
- int leaf()
- {
- arc(3.1,3.38896,0.4,0,360);
- moveto(0,0);
- curveto(3.38924,0.598051,3.18987,3.85411,5.91456,6.11341);
- curveto(2.06013,5.44891,2.52532,1.5948,0,0);
- closepath();
- gsave();
- fill();
- grestore();
- set(LINECOLOUR,BLACK);
- stroke();
- }
-
-