summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/star.asy
blob: 3a7afb2529b75014e1f3019f333a26b92f9c27e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
size(100);
import math;

int n=5;
path p;

int i=0;
do {
  p=p--unityroot(n,i);
  i=(i+2) % n;
} while(i != 0);

filldraw(p--cycle,red+evenodd);