Skip to content

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

License

Notifications You must be signed in to change notification settings

mkDoku/animationOfPentagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published