summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLibravatar Clark Moody <clark@clarkmoody.com>2020-04-02 15:24:40 -0500
committerLibravatar Clark Moody <clark@clarkmoody.com>2020-04-24 15:13:22 -0500
commitea3b7b528275c7ae8a336004ad77f85341599335 (patch)
tree352338a4e522761b4dbeab0a7e2a8986e79e1c51 /core/src
parent56ce01e262832b78530b0721f735a95919651d91 (diff)
downloadiced-ea3b7b528275c7ae8a336004ad77f85341599335.tar.gz
iced-ea3b7b528275c7ae8a336004ad77f85341599335.tar.bz2
iced-ea3b7b528275c7ae8a336004ad77f85341599335.zip
Derive Default for Color
Diffstat (limited to 'core/src')
-rw-r--r--core/src/color.rs2
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,