Skip to content

Commit

Permalink
colorspace: add missing toHsv in Hsl color
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Oct 14, 2024
1 parent c328ed7 commit 623dbbb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/colorspace.zig
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,11 @@ pub const Hsl = struct {
return self.toRgb().toRgba(alpha);
}

/// Converts the HSL color into a HSV color.
pub fn toHsv(self: Hsl) Hsv {
return self.toRgb().toHsv();
}

/// Converts the Hsl color into a CIE 1931 XYZ color.
pub fn toXyz(self: Hsl) Xyz {
self.toRgb().toXyz();
Expand Down

0 comments on commit 623dbbb

Please sign in to comment.