diff options
Diffstat (limited to 'Build/source/utils/asymptote/examples/star.asy')
-rw-r--r-- | Build/source/utils/asymptote/examples/star.asy | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/star.asy b/Build/source/utils/asymptote/examples/star.asy new file mode 100644 index 00000000000..3a7afb2529b --- /dev/null +++ b/Build/source/utils/asymptote/examples/star.asy @@ -0,0 +1,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); |