Skip to content

Commit 4e44276

Browse files
committed
Change color conversion to linear RGBA rather than sRGBA. Bracket terminal colors look right now.
1 parent 15ec23a commit 4e44276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bracket-color/src/rgba.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl RGBA {
298298
#[cfg(feature = "bevy")]
299299
#[must_use]
300300
pub fn as_rgba_f32(&self) -> [f32; 4] {
301-
[self.r, self.g, self.b, self.a]
301+
bevy::prelude::Color::as_linear_rgba_f32([self.r, self.g, self.b, self.a].into())
302302
}
303303

304304
/// Applies a quick grayscale conversion to the color

0 commit comments

Comments
 (0)