From f271d734e65908d8514da914d2bed7a7bb90696b Mon Sep 17 00:00:00 2001 From: Niklas Eicker Date: Wed, 25 May 2022 17:46:58 +0000 Subject: [PATCH] Rename Color::as_hlsa_f32 to Color::as_hsla_f32 (#4827) # Objective Make the function consistent with returned values and `as_hsla` method Fixes #4826 ## Solution - Rename the method ## Migration Guide - Rename the method --- crates/bevy_render/src/color/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_render/src/color/mod.rs b/crates/bevy_render/src/color/mod.rs index b1aaa66079..ad07ab9eac 100644 --- a/crates/bevy_render/src/color/mod.rs +++ b/crates/bevy_render/src/color/mod.rs @@ -491,8 +491,8 @@ impl Color { } } - /// Converts a `Color` to a `[f32; 4]` from HLS colorspace - pub fn as_hlsa_f32(self: Color) -> [f32; 4] { + /// Converts a `Color` to a `[f32; 4]` from HSL colorspace + pub fn as_hsla_f32(self: Color) -> [f32; 4] { match self { Color::Rgba { red,