mirror of
https://github.com/bevyengine/bevy
synced 2025-02-18 06:58:34 +00:00
Update color.rs (#670)
Co-authored-by: Julian Heinken <julian.heinken@gmail.com>
This commit is contained in:
parent
f6fc76db1d
commit
32b122e1c5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue