mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-14 11:28:42 -06:00
fix color-related code
This commit is contained in:
parent
ba2d2dea2c
commit
144cff3268
|
@ -6,7 +6,7 @@ pub fn color_rgba(r: u8, g: u8, b: u8, a: u8) -> Vec4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub const fn color_hex(c: u32) -> Vec4 {
|
pub fn color_hex(c: u32) -> Vec4 {
|
||||||
let c = c.to_le_bytes();
|
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])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue