Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Computer Graphics Repository

A Rust-based computer graphics repository for course exercises, experiments, and project records.

This repository is used to store multiple computer graphics assignments and examples developed during the course.
The current project includes a Hello Triangle example, which opens a window and renders a triangle with RGB vertex color interpolation.


Current Example: Hello Triangle

This program renders a triangle with three vertex colors:

  • Red
  • Green
  • Blue

The color inside the triangle is smoothly interpolated between the three vertices, reproducing the classic Hello Triangle style commonly used in introductory computer graphics examples.


Screenshot

Triangle Result


Features

  • Window creation in Rust
  • Triangle rendering
  • RGB vertex color interpolation
  • Minimal and beginner-friendly graphics example
  • Easy dependency management with Cargo
  • Suitable for computer graphics coursework and practice

Development Environment

  • OS: Windows 11
  • Rust: rustc 1.94.0 (4a4ef493e 2026-03-02)
  • Cargo: cargo 1.94.0 (85eff7c80 2026-01-15)

How to Run

1. Install Rust

Install Rust from the official website:

https://rustup.rs

After installation, verify the environment:

rustc --version
cargo --version

2. Clone the Repository

git clone https://github.com/1abhax/computer-graphics-rust
cd rust-graphics

3. Build

cargo build

4. Run

cargo run

Or with optimizations:

cargo run --release

Project Structure

rust-graphics/
├── Cargo.toml
├── src/
│   └── main.rs
├── imgs/
│   └── triangle.png
└── README.md

About

I love rust d(`・∀・)b ~~

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages