Figure Asymptote generalities -- 153
🔗This picture comes from the Asymptote gallery of topic generalities

Show generalities/fig1540.asy on Github.
Generated with Asymptote 3.00-0.
Categories : Examples 2D | Generalities
Tags : #Basis | #Path | #Function creation | #Loop/for/while
size(10cm,0); path unitpolygon(int n) { guide opath; for (int i=1; i<=n; ++i) opath=opath--rotate((i-1)*360/n)*E; return opath--cycle; } for (int i=3; i<9; ++i) draw(shift(2.5*(i%3),-2.5*quotient(i,3))*unitpolygon(i));