Skip to content

Commit

Permalink
update readme with animation gif
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed Feb 11, 2024
1 parent 5ec2b8c commit 628fff2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# sorting-visualizer

`sorting-visualizer` is a CLI tool that visually displays iterations in sorting algorithms.

![animate](assets/output.gif)

| Key | Function |
| ------- | -------------------------------- |
| `space` | Toggle play/pause |
| `` | Forward to the next iteration |
| `` | Rewind to the previous iteration |
| `m` | Mute or unmute the beep sound |
Binary file added assets/output.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use sorting_visualizer::{
sorting::{get_algorithm_func, get_algorithms, AlgorithmContext, Operation},
};
use std::{
fmt::{Debug, Display},
fmt::Display,
io::{self, stdout},
ops::{DerefMut, Index},
sync::{Arc, Mutex},
Expand Down

0 comments on commit 628fff2

Please sign in to comment.