Skip to content

Commit

Permalink
correctly use as_hsla_f32 in Color
Browse files Browse the repository at this point in the history
  • Loading branch information
verte committed Aug 1, 2022
1 parent f3b5bf0 commit 87ddb03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ impl AddAssign<Color> for Color {
lightness,
alpha,
} => {
let rhs = rhs.as_linear_rgba_f32();
let rhs = rhs.as_hsla_f32();
*hue += rhs[0];
*saturation += rhs[1];
*lightness += rhs[2];
Expand Down Expand Up @@ -708,7 +708,7 @@ impl Add<Color> for Color {
lightness,
alpha,
} => {
let rhs = rhs.as_linear_rgba_f32();
let rhs = rhs.as_hsla_f32();
Color::Hsla {
hue: hue + rhs[0],
saturation: saturation + rhs[1],
Expand Down

0 comments on commit 87ddb03

Please sign in to comment.