Skip to content

Commit

Permalink
Update color.rs (bevyengine#670)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Heinken <julian.heinken@gmail.com>
  • Loading branch information
Julian Heinken and Julian Heinken committed Oct 12, 2020
1 parent f6fc76d commit 32b122e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/color.rs
Expand Up @@ -143,11 +143,11 @@ impl Color {
}

pub fn g(&self) -> f32 {
self.red.linear_to_nonlinear_srgb()
self.green.linear_to_nonlinear_srgb()
}

pub fn b(&self) -> f32 {
self.red.linear_to_nonlinear_srgb()
self.blue.linear_to_nonlinear_srgb()
}

// linear-sRGB Component Getter
Expand Down

0 comments on commit 32b122e

Please sign in to comment.