mirror of
https://github.com/bevyengine/bevy
synced 2024-11-26 06:30:19 +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 {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue