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:
Niklas Eicker 2022-05-25 17:46:58 +00:00
parent 5dd30b6279
commit f271d734e6

View File

@ -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,