diff options
author | 2020-04-02 15:24:40 -0500 | |
---|---|---|
committer | 2020-04-24 15:13:22 -0500 | |
commit | ea3b7b528275c7ae8a336004ad77f85341599335 (patch) | |
tree | 352338a4e522761b4dbeab0a7e2a8986e79e1c51 /core | |
parent | 56ce01e262832b78530b0721f735a95919651d91 (diff) | |
download | iced-ea3b7b528275c7ae8a336004ad77f85341599335.tar.gz iced-ea3b7b528275c7ae8a336004ad77f85341599335.tar.bz2 iced-ea3b7b528275c7ae8a336004ad77f85341599335.zip |
Derive Default for Color
Diffstat (limited to 'core')
-rw-r--r-- | core/src/color.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, |