Drawing and animation, package recommendation

A friend of mine made this awsome image by hand using Windows Paint. Which package do you recommend me for drawing it and animating it? The animation would be of transformations of the original image. I’ve read that Cairo, Luxor, Javis, Animations, Compose and Gadfly could be used for drwaing or animating. There are many packages and I don’t where to begin. I would like use only package for doing both things.

It partly depends on what you mean by “transformations”. :slight_smile:

The job would be fairly straightforward in Cairo.jl, although you’d have to write some utility functions to generate the animations.

It would be easy to do in Luxor.jl and probably even easier in Javis.jl (which I think uses Animations.jl internally).

I don’t understand Compose.jl at all, but I think their approach to constructing graphics might be useful for some of these shapes, not sure. (“As everyone from lisp hackers and phylogeneticists knows, trees can be defined most tersely using S-expressions.”)

I don’t know whether Compose.jl or Gadfly.jl do animations, but I assume they could be persuaded to do so.

If you decide to go with Luxor.jl I can probably help you with problems if you open issues on GitHub - JuliaGraphics/Luxor.jl: Simple drawings using vector graphics; Cairo "for tourists!".


I mean transformation in a geometeic sense like rotations.

Thank you, I’ll give Luxor a try and post an issue if I run into trouble. :slightly_smiling_face:

1 Like

The basic graphic is quite easy:

The “magic number” that works here is:

𝔾 = 1/(MathConstants.golden ^ 2)  # (about  0.38)

which will scale one pentagon down to the next smaller one.

Have fun!


It’s great! You won me the pentagon so I guess I’ll have to make it with another polygon. q:

1 Like

Thanks for the pointer to Javis.jl!