Update color.rs (#670)
Co-authored-by: Julian Heinken <julian.heinken@gmail.com>
This commit is contained in:
parent
f6fc76db1d
commit
32b122e1c5
@ -143,11 +143,11 @@ impl Color {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn g(&self) -> f32 {
|
pub fn g(&self) -> f32 {
|
||||||
self.red.linear_to_nonlinear_srgb()
|
self.green.linear_to_nonlinear_srgb()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn b(&self) -> f32 {
|
pub fn b(&self) -> f32 {
|
||||||
self.red.linear_to_nonlinear_srgb()
|
self.blue.linear_to_nonlinear_srgb()
|
||||||
}
|
}
|
||||||
|
|
||||||
// linear-sRGB Component Getter
|
// linear-sRGB Component Getter
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user