Derive Default for Color
This commit is contained in:
parent
56ce01e262
commit
ea3b7b5282
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
use palette::rgb::Srgba;
|
use palette::rgb::Srgba;
|
||||||
|
|
||||||
/// A color in the sRGB color space.
|
/// A color in the sRGB color space.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Default)]
|
||||||
pub struct Color {
|
pub struct Color {
|
||||||
/// Red component, 0.0 - 1.0
|
/// Red component, 0.0 - 1.0
|
||||||
pub r: f32,
|
pub r: f32,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue