Skip to content

nest-rs/nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nest

A 2d graphics crate with propagated transformation

Usage

Cargo.toml

[dependencies]
nest = { git = "https://github.com/twh2898/nest.git" }

Example

extern crate nest;
use nest::*;

fn main() {
    let mut app = Window::new("Example", 640, 480).expect("error: failed to open window");

    while !app.poll_events().any(|e| e == Event::Closed) {
        app.draw(rect([-0.5, -0.5], [0.5, 0.5]).translate((-0.1, -0.1)).combine(
            rect([-0.8, -0.8], [0.3, 0.3])).translate([0.1, 0.1]).rotate(0.5));
    }
}

Licence

nest uses the MIT licence

About

A simple rust 2D graphics library inspired by LOVE2D and https://github.com/alexandercampbell/simple

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published