diff options
Diffstat (limited to 'engine/src/data_types')
-rw-r--r-- | engine/src/data_types/color.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/data_types/color.rs b/engine/src/data_types/color.rs index 697ea8b..7bab678 100644 --- a/engine/src/data_types/color.rs +++ b/engine/src/data_types/color.rs @@ -12,6 +12,11 @@ impl Color<f32> pub const WHITE_F32: Self = Self { red: 1.0, green: 1.0, blue: 1.0 }; } +impl Color<u8> +{ + pub const WHITE_U8: Self = Self { red: 255, green: 255, blue: 255 }; +} + impl<Value: Clone> From<Value> for Color<Value> { fn from(value: Value) -> Self |