#[derive(Debug, Clone, Default)] #[repr(C)] pub struct Color { pub red: Value, pub green: Value, pub blue: Value, } impl Color { pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 }; } impl From for Color { fn from(value: Value) -> Self { Self { red: value.clone(), green: value.clone(), blue: value, } } }