An open API service indexing awesome lists of open source software.

https://github.com/gbpagano/spinning_cube

Perspective projection of a spinning cube, using just ASCII characters.
https://github.com/gbpagano/spinning_cube

rust terminal

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Spinning Cube

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

---

[video](https://github.com/gbPagano/spinning_cube/assets/103840130/36422f8a-17d9-4251-9cc8-3cd03a4c5f7b)

## Installation

```bash
cargo install spinning_cube
```

## Basic Usage

To display the cube in the terminal run the following command:

```bash
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

```bash
spinning_cube -c
```

or

```bash
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

```bash
spinning_cube -d 4
```

or

```bash
spinning_cube --distance 4
```