Skip to content

βœοΈπŸ¦€ Rust drawing allows you to draw incredible and admirable art in your terminal

License

Notifications You must be signed in to change notification settings

SkwalExe/rust-drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rust-drawing ✏️

βœοΈπŸ¦€ Rust drawing allows you to draw incredible and admirable art in your terminal

Installation πŸ“¦

Arch Linux 🐧

rust-drawing is available in the AUR repository.

yay -S rust-drawing

Other πŸͺŸπŸ§

With make - linux 🐧

build with make

# πŸ“‚ /rust-drawing/
make

copy the binary to the bin folder

# πŸ“‚ /rust-drawing/
make install

Build from source - Linux 🐧 and Windows 🐧

build with cargo.

# πŸ“‚ /rust-drawing/
cargo build --release

[ LINUX ONLY ] : Move the binary

# πŸ“‚ /rust-drawing/
sudo cp target/release/rust-drawing /usr/bin/bin/rust-drawing

On windows the executable will be target\release\rust-drawing.exe you can move it wherever you want.

Usage πŸ“

Use arrow keys to move the cursor

  • [ D ] : Toggle drawing mode
  • [ Q ] : Quit
  • [ C ] : Clear the screen
  • [ N ] : New colors
  • [ R ] : Reload pixels (if you change the size of the terminal for example)

You can use the mouse to position the cursor.

Docker 🐳

Run the latest verison

docker run --rm -it ghcr.io/skwalexe/rust-drawing:main

Test your changes 🚧

Build πŸ› οΈ

# πŸ“‚ /rust-drawing/
docker build -t rust-drawing .

Run πŸš€

docker run --rm -it rust-drawing

Uninstall πŸ—‘

With make

run make uninstall

# πŸ“‚ /rust-drawing/
make uninstall

Remove the binary

rm /usr/bin/rust-drawing

final

If you have any problem, don't hesitate to open an issue

contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.