diff --git a/crates/bevy_render/src/color.rs b/crates/bevy_render/src/color.rs index 5e1ff1e0bf..75aefb9e30 100644 --- a/crates/bevy_render/src/color.rs +++ b/crates/bevy_render/src/color.rs @@ -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