Skip to content

Commit f271d73

Browse files
committed
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
1 parent 5dd30b6 commit f271d73

File tree

1 file changed

+2
-2
lines changed
  • crates/bevy_render/src/color

1 file changed

+2
-2
lines changed

crates/bevy_render/src/color/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ impl Color {
491491
}
492492
}
493493

494-
/// Converts a `Color` to a `[f32; 4]` from HLS colorspace
495-
pub fn as_hlsa_f32(self: Color) -> [f32; 4] {
494+
/// Converts a `Color` to a `[f32; 4]` from HSL colorspace
495+
pub fn as_hsla_f32(self: Color) -> [f32; 4] {
496496
match self {
497497
Color::Rgba {
498498
red,

0 commit comments

Comments
 (0)