/animationOfPentagram

Code for animation created with reanimate for explaining the shape of a pentagram.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Code for animation of pentagram vertices

This is a small animation of how to obtain the coordinates of vertices of a pentagram. Both polar and Cartesian coordinates are depicted (the distance from the center $r$ equals one).
The animation was created using reanimate, a Haskell library for the creation of animations.

How to use

If you never used reanimate check out their tutorial or read about it in my blog posts (coming soon).

If you have some experience with reanimate use the following command to compile a gif (after you have cloned the repo):

stack src/Main.hs -- render --format gif --compile -w 965 -h 540 -o src/Pentagram.gif

Note: You can change the resolution of the gif if you want, but keep a ratio of 16/9.

This should result in the following gif:

How to obtain coordinates for a pentagram

It should be located in src and you can open it with a internet browser or a image viewer, which is capable of running gifs.