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.
- Host: GitHub
- URL: https://github.com/gbpagano/spinning_cube
- Owner: gbPagano
- Created: 2023-08-15T21:30:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T02:37:39.000Z (over 1 year ago)
- Last Synced: 2025-04-23T06:46:37.153Z (6 months ago)
- Topics: rust, terminal
- Language: Rust
- Homepage:
- Size: 36.1 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```