drawing 0.3.3

API for 2D graphics library
Documentation
1
2
3
4
5
6
7
8
9
pub type Color = [f32; 4]; // R, G, B, A

pub enum ColorFormat {
    // for color images, 24-bit color with 8-bit alpha channel
    RGBA,

    // 8-bit channel, for use with monochromatic textures (like fonts)
    Y8,
}