#cube #projection #terminal #cli

app spinning_cube

Perspective projection of a spinning cube, using just ASCII characters

4 releases

0.1.3 Feb 19, 2024
0.1.2 Aug 26, 2023
0.1.1 Aug 26, 2023
0.1.0 Aug 22, 2023

#877 in Text processing

Download history 125/week @ 2024-02-16 25/week @ 2024-02-23 3/week @ 2024-03-01 189/week @ 2024-03-22 5/week @ 2024-03-29

194 downloads per month

MIT license

9KB
181 lines

Spinning Cube

Perspective projection of a spinning cube, using just ASCII characters.


video

Installation

cargo install spinning_cube

Basic Usage

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

Dependencies

~5–16MB
~203K SLoC