JuliaGraphics / Luxor.jl

Simple drawings using vector graphics; Cairo "for tourists!"
http://juliagraphics.github.io/Luxor.jl/
Other
575 stars 72 forks source link

Running @draw in a loop #299

Open j-adel opened 3 months ago

j-adel commented 3 months ago

Hello! I was wondering if there is a way to run one of the draw macros in a loop such that the preview window shows them sequentially. Currently, the only way I've found is through animate() which creates and shows a gif of a predetermined size. What I was thinking of is more similar to the draw window in Processing.org where the renders aren't stored and can run indefinitely. Thanks!

cormullion commented 3 months ago

Luxor is a bit static, and doesn’t provide a ‘live’ window to display a drawing. It is possible, though- see the docs here: https://juliagraphics.github.io/LuxorManual/dev/howto/livegraphics/ .

j-adel commented 3 months ago

Perfect! Thanks for the quick answer. I'd consider this issue closed then. Perhaps it would be a good idea to mention this option on the Make Animations page in the documentation?