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 authored and cart committed Aug 16, 2022
1 parent 21dacbf commit f8c09cc
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 @@ -745,7 +745,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 @@ -794,7 +794,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 f8c09cc

Please sign in to comment.