diff --git a/kubi/src/color.rs b/kubi/src/color.rs index 1854ff4..6e11e3e 100644 --- a/kubi/src/color.rs +++ b/kubi/src/color.rs @@ -6,7 +6,7 @@ pub fn color_rgba(r: u8, g: u8, b: u8, a: u8) -> Vec4 { } #[inline(always)] -pub const fn color_hex(c: u32) -> Vec4 { +pub fn color_hex(c: u32) -> Vec4 { let c = c.to_le_bytes(); - vec4(c[0] as f32, c[1] as f32, c[2] as f32, c[3] as f32) + color_rgba(c[0], c[1], c[2], c[3]) }