Select language to see the source code
Select to view full-size image
Demo of drawing and filling 'spirograph' curves - epitrochoids, cycolids, roulettes. We have specified the general PLplot option '-eofill' when generating these figures. That means the spirographic curves will be filled using the even-odd fill rule rather than the (default) non-zero winding number fill rule. The motivation for this choice is the even-odd rule produces more 'interesting' looking results than would be produced by the non-zero rule (where a much larger fraction of the complex spirographic curve would be filled).