Skip to content

Commit

Permalink
Tweak and document Default impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Cecile committed Feb 27, 2024
1 parent 26543ab commit 21e5bbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_color/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ impl Color {
}

impl Default for Color {
/// A fully white [`Color::LinearRgba`] color with an alpha of 1.0.
fn default() -> Self {
Self::Srgba(Srgba::WHITE)
Color::WHITE
}
}

Expand Down

0 comments on commit 21e5bbd

Please sign in to comment.