Function rurtle::graphic::color::to_array [] [src]

pub fn to_array(color: Color) -> [f32; 4]

Convert a Color (4-tuple of f32) to a color array ([f32; 4]). Useful for sending it to shaders.