Crates.io | spinning_cube |
lib.rs | spinning_cube |
version | 0.1.3 |
source | src |
created_at | 2023-08-22 01:36:47.915906 |
updated_at | 2024-02-19 02:36:24.219837 |
description | Perspective projection of a spinning cube, using just ASCII characters. |
homepage | |
repository | https://github.com/gbPagano/spinning_cube |
max_upload_size | |
id | 950630 |
size | 21,637 |
Perspective projection of a spinning cube, using just ASCII characters.
cargo install spinning_cube
To display the cube in the terminal run the following command:
spinning_cube
By default the cube will be displayed in black and white, but it is also possible to display it in color!
For that you can run the following command
spinning_cube -c
or
spinning_cube --colorful
To simulate perspective a distance value is used whose default value is 11. When changed your distortion is affected, try experimenting with values like 3 and 4.
To specify this distance use the following command
spinning_cube -d 4
or
spinning_cube --distance 4