Skip to content

A short repository where I re-implemented the classic spinning cube rendering is ASCII characters using the Rust programming language

Notifications You must be signed in to change notification settings

Henrique-Azank/rust-spinning-ascii-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 ASCII Spinning Cube in Rust

A terminal-based 3D spinning cube rendered in ASCII, written in Rust. Coded as a small re-write of the C-based version implemented in this Youtube video

Spinning Cube Demo

(Click GIF if it doesn’t animate)

Features

  • Real-time rotation with adjustable speed
  • Pure ASCII output (no external dependencies)
  • Customizable cube size and perspective

Quick Start

git clone https://github.com/henrique-azank/rust-spinning-ascii-cube.git
cd rust-spinning-ascii-cube
cargo run --release

Build

Requires Rust 1.70+:

cargo build --release

How It Works

Uses ANSI escape codes (\x1b[2J) for screen clearing and 3D projection math to render frames.


🛠️ Contribute: PRs welcome!
Star this repo if you like it!

About

A short repository where I re-implemented the classic spinning cube rendering is ASCII characters using the Rust programming language

Topics

Resources

Stars

Watchers

Forks

Languages