LucasPilla / Sorting-Algorithms-Visualizer

Program made with Python and Pygame module for visualizing sorting algorithms
MIT License
426 stars 164 forks source link

Compress Gifs #155

Closed highb33kay closed 1 year ago

highb33kay commented 2 years ago

@LucasPilla So this is how I synced the Gifs for #152 :

  1. I determined how long the slowest Algo Gif (Selection Sort) ran for (1 : 10 : 08).
  2. I added a wait time to the other Gifs, So they wait for Selection Sort Gif to reach the finish line.
  3. I ran a test to ensure they synced.
  4. The Gifs are linked to Base Repo so I cant see changed in mine repo until merged.

Tag hacktoberfest if merged. 😂

LucasPilla commented 2 years ago

@highb33kay Great! Can you share how you did it? Is it possible to create just one gif with all algorithms synced?

highb33kay commented 2 years ago

Do you mean a one gif to rule then all situation? I mean all gifs will be merged into this one gif and will be synced to play.

highb33kay commented 2 years ago

I just researched with the knowledge that the gif is just a played media and found https://stackoverflow.com/questions/53509022/r-imagemagick-how-to-add-delay-after-each-loop-in-animation.

LucasPilla commented 2 years ago

Hi @highb33kay! Actually I think the visualization was better with the gifs not synced.

I have another task to be done, the gifs are quite heavy so I want to optimize/compress them. I can assign this task to you, do you want?

highb33kay commented 2 years ago

Yes, I do. Assign away, sir. 😅