notan 0.14.0

A simple portable multimedia layer to create apps or games easily
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use notan::draw::*;
use notan::prelude::*;

#[notan_main]
fn main() -> Result<(), String> {
    notan::init().add_config(DrawConfig).draw(draw).build()
}

fn draw(gfx: &mut Graphics) {
    let mut draw = gfx.create_draw();
    draw.clear(Color::BLACK);
    draw.rect((100.0, 100.0), (600.0, 400.0));
    gfx.render(&draw);
}