Skip to content

Commit

Permalink
Rename Color::as_hlsa_f32 to Color::as_hsla_f32 (bevyengine#4827)
Browse files Browse the repository at this point in the history
# Objective

Make the function consistent with returned values and `as_hsla` method

Fixes bevyengine#4826 

## Solution

- Rename the method


## Migration Guide

- Rename the method
  • Loading branch information
NiklasEi authored and james7132 committed Jun 7, 2022
1 parent 5d49162 commit 11749b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_render/src/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 11749b3

Please sign in to comment.