Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

animated gifs of (sorting) algorithms

What is the best way to generate gifs of algorithms like this one in Wikipedia? In Linux, any language really.

like image 455
Dervin Thunk Avatar asked Nov 23 '25 14:11

Dervin Thunk


2 Answers

ImageMagick can construct animations by assembling several bitmaps into one:

convert -delay 100 \
      -page first.gif \
      -page second.gif \
      -page third.gif \
      -loop 0  animation.gif
like image 140
Anders Lindahl Avatar answered Nov 25 '25 11:11

Anders Lindahl


There are probably more user-friendly ways, but last time I did this, I used gifsicle to assemble some pre-built frames into an animation.

like image 26
clstrfsck Avatar answered Nov 25 '25 10:11

clstrfsck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!