comparison README.md @ 54:2016dc709c7b default tip

Update typos
author Dennis C. M. <dennis@denniscm.com>
date Mon, 02 Jun 2025 19:20:51 +0100
parents 10a7b0e258f4
children
comparison
equal deleted inserted replaced
53:d44c59576969 54:2016dc709c7b
1 # Algo Animator
1 2
2 # algo-animator 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)
3 5
4 An interactive program to visualize sorting algorithms. Developed in C using OpenGL, GLUT and FreeType. I also made a video about this project -> [Youtube](https://youtu.be/KvOI88s-FsU). 6 ![alt text](.repo/1.png) ![alt text](.repo/2.png)
5
6 This project is inspired by the video of Timo Bingmann called [15 sorting algorithms in 6 minutes](https://www.youtube.com/watch?v=kPRA0W1kECg)
7
8 ![alt text](.github/1.png)
9 ![alt text](.github/2.png)
10 7
11 ## Usage 8 ## Usage
12 9
13 ### Compile 10 ### Compile
14 11
15 mkdir build 12 mkdir build cd build cmake .. make
16 cd build
17 cmake ..
18 make
19 13
20 Currently I've only tested this project on Linux. However, I would like to prepare it so that it can be used on Mac and Windows. However, my cross-platform experience is almost non-existent. Maybe in the future I'll check how to do it. 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.
21 18
22 ### Run 19 ### Run
23 20
24 To customize the program you can pass the following arguments. 21 To customize the program you can pass the following arguments.
25 22
26 ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH SPACE_BETWEEN_RECTANGLES 23 ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH
24 SPACE_BETWEEN_RECTANGLES
27 25
28 The default values are: 26 The default values are:
29 27
30 WINDOW_WIDTH = 1920 28 WINDOW_WIDTH = 1920 WINDOW_HEIGHT = 1080 RECTANGLE_WIDTH = 5
31 WINDOW_HEIGHT = 1080 29 SPACE_BETWEEN_RECTANGLES = 1
32 RECTANGLE_WIDTH = 5
33 SPACE_BETWEEN_RECTANGLES = 1
34 30
35 Run the program in a window with width of 1920 pixels and height of 1080 pixels, fit the screen with rectangles with width of 50 pixels, and add a space between rectangles of 3 pixels. 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.
36 34
37 ./algo_animator 1920 1080 50 3 35 ./algo_animator 1920 1080 50 3
38 36
39 # Notes 37 # Notes
40 38
41 This project has not been designed to compare the speed of the algorithms side by side. The main objective is the visualization of the algorithms for educational purposes. 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.
42 42
43