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
This commit is contained in:
parent
5dd30b6279
commit
f271d734e6
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user