Update color.rs (#670)

Co-authored-by: Julian Heinken <julian.heinken@gmail.com>
This commit is contained in:
Julian Heinken 2020-10-12 19:19:06 +02:00 committed by GitHub
parent f6fc76db1d
commit 32b122e1c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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