Mercurial > public > algo-animator
comparison README.md @ 33:576431310c8a
fix format
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Thu, 29 Jun 2023 19:47:19 +0100 |
parents | b1a605eb721a |
children | 708404e5dcf5 |
comparison
equal
deleted
inserted
replaced
32:b1a605eb721a | 33:576431310c8a |
---|---|
16 cd build | 16 cd build |
17 cmake .. | 17 cmake .. |
18 make | 18 make |
19 ``` | 19 ``` |
20 | 20 |
21 **Currently I've only tested this project on Linux. However, I would like to prepare it so | 21 *Currently I've only tested this project on Linux. However, I would like to prepare it so |
22 that it can be used on Mac and Windows. However, my cross-platform experience is almost | 22 that it can be used on Mac and Windows. However, my cross-platform experience is almost |
23 non-existent. Maybe in the future I'll check how to do it** | 23 non-existent. Maybe in the future I'll check how to do it* |
24 | 24 |
25 # Run | 25 ## Run |
26 | 26 |
27 To customize the program you can pass the following arguments. | 27 To customize the program you can pass the following arguments. |
28 | 28 |
29 ```bash | 29 ```bash |
30 ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH SPACE_BETWEEN_RECTANGLES | 30 ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH SPACE_BETWEEN_RECTANGLES |
48 ``` | 48 ``` |
49 | 49 |
50  | 50  |
51 | 51 |
52 | 52 |
53 # Examples | 53 ## Examples |
54 | 54 |
55 ## Normal mode | 55 ### Normal mode |
56 | 56 |
57 Just run the program and press `ENTER` | 57 Just run the program and press `ENTER` |
58 | 58 |
59 ## Slow motion | 59 ### Slow motion |
60 | 60 |
61 Use `u` to increase the delay, then `ENTER` to run the algorithm | 61 Use `u` to increase the delay, then `ENTER` to run the algorithm |
62 **The delay is applied after each iteration** | 62 *The delay is applied after each iteration* |
63 | 63 |
64 ## Pause mode | 64 ### Pause mode |
65 | 65 |
66 Press `ENTER` then `p` | 66 Press `ENTER` then `p` |
67 | 67 |
68 ## Sequential mode | 68 ### Sequential mode |
69 | 69 |
70 Press `q` then press `ENTER` to visualize the algorithm step by step. | 70 Press `q` then press `ENTER` to visualize the algorithm step by step. |