54
|
1 # Algo Animator
|
47
|
2
|
54
|
3 This project is inspired by the video of Timo Bingmann called [15 sorting
|
|
4 algorithms in 6 minutes](https://www.youtube.com/watch?v=kPRA0W1kECg)
|
47
|
5
|
54
|
6  
|
48
|
7
|
47
|
8 ## Usage
|
|
9
|
|
10 ### Compile
|
|
11
|
54
|
12 mkdir build cd build cmake .. make
|
47
|
13
|
54
|
14 Currently I've only tested this project on Linux. However, I would like to
|
|
15 prepare it so that it can be used on Mac and Windows. However, my
|
|
16 cross-platform experience is almost non-existent. Maybe in the future I'll
|
|
17 check how to do it.
|
47
|
18
|
|
19 ### Run
|
|
20
|
|
21 To customize the program you can pass the following arguments.
|
|
22
|
54
|
23 ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH
|
|
24 SPACE_BETWEEN_RECTANGLES
|
47
|
25
|
|
26 The default values are:
|
|
27
|
54
|
28 WINDOW_WIDTH = 1920 WINDOW_HEIGHT = 1080 RECTANGLE_WIDTH = 5
|
|
29 SPACE_BETWEEN_RECTANGLES = 1
|
47
|
30
|
54
|
31 Run the program in a window with width of 1920 pixels and height of 1080
|
|
32 pixels, fit the screen with rectangles with width of 50 pixels, and add a space
|
|
33 between rectangles of 3 pixels.
|
47
|
34
|
54
|
35 ./algo_animator 1920 1080 50 3
|
47
|
36
|
|
37 # Notes
|
|
38
|
54
|
39 This project has not been designed to compare the speed of the algorithms side
|
|
40 by side. The main objective is the visualization of the algorithms for
|
|
41 educational purposes.
|
47
|
42
|