drawing_gl 0.8.0

OpenGL backend for 2D graphics library
Documentation
1
2
3
4
5
pub type Color = [f32; 4];

pub fn convert_color(color: &drawing_api::Color) -> Color {
    [color.red, color.green, color.blue, color.alpha]
}