From ea3b7b528275c7ae8a336004ad77f85341599335 Mon Sep 17 00:00:00 2001 From: Clark Moody Date: Thu, 2 Apr 2020 15:24:40 -0500 Subject: [PATCH] Derive Default for Color --- core/src/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/color.rs b/core/src/color.rs index eff14948..56d5455f 100644 --- a/core/src/color.rs +++ b/core/src/color.rs @@ -2,7 +2,7 @@ use palette::rgb::Srgba; /// A color in the sRGB color space. -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Default)] pub struct Color { /// Red component, 0.0 - 1.0 pub r: f32,