juke 0.0.111

🤖 A small engine for prototyping projects
Documentation
juke-0.0.111 has been yanked.

🤖 A small engine for prototyping projects

Usage

# Cargo.toml

[dependencies]

juke = "0.0.111"

Example

use juke::{gizmos, math::u32::UVec2, *};

fn main() {
    let res = Engine::new("Hello, World! - ESC to exit", 256, 144, 3).run(|e: &mut Engine| {
        let pos = UVec2::new(e.buffer.w as u32 / 2, e.buffer.h as u32 / 2);
        gizmos::circle(Color(255, 0, 255), &pos, 50, &mut e.buffer);

        Ok(())
    });

    match res {
        Ok(()) => println!("exited successfully!"),
        Err(e) => panic!("{}", e),
    }
}