Skip to content

gbPagano/spinning_cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spinning Cube

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


spinning_cube.mp4

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages