Codeworks on vacahy

This commit is contained in:
2024-12-10 13:26:33 -06:00
parent bb157ff855
commit c2692a27ae
2 changed files with 64 additions and 29 deletions

View File

@@ -147,29 +147,29 @@ public:
static Color4 Lerp(const Color4& lhs, const Color4& rhs, float t);
/// Alternative to Lerp which does not normalize color channels before and after interpolation.
Color4 Lerp2(const Color4& rhs, float t) const;
[[nodiscard]] Color4 Lerp2(const Color4& rhs, float t) const;
/// Alternative to Lerp which does not normalize color channels before and after interpolation.
static Color4 Lerp2(const Color4& lhs, const Color4& rhs, float t);
Color4 LerpByHSVA(const Color4& rhs, float t) const;
[[nodiscard]] Color4 LerpByHSVA(const Color4& rhs, float t) const;
std::string ToHex() const;
std::string ToHexA() const;
[[nodiscard]] std::string ToHex() const;
[[nodiscard]] std::string ToHexA() const;
u8 RedChannel() const;
u8 GreenChannel() const;
u8 BlueChannel() const;
u8 AlphaChannel() const;
[[nodiscard]] u8 RedChannel() const;
[[nodiscard]] u8 GreenChannel() const;
[[nodiscard]] u8 BlueChannel() const;
[[nodiscard]] u8 AlphaChannel() const;
u8 R() const;
u8 G() const;
u8 B() const;
u8 A() const;
[[nodiscard]] u8 R() const;
[[nodiscard]] u8 G() const;
[[nodiscard]] u8 B() const;
[[nodiscard]] u8 A() const;
float RedChannelNormalized() const;
float GreenChannelNormalized() const;
float BlueChannelNormalized() const;
float AlphaChannelNormalized() const;
[[nodiscard]] float RedChannelNormalized() const;
[[nodiscard]] float GreenChannelNormalized() const;
[[nodiscard]] float BlueChannelNormalized() const;
[[nodiscard]] float AlphaChannelNormalized() const;
[[nodiscard]] float RN() const;
[[nodiscard]] float GN() const;
@@ -179,14 +179,12 @@ public:
u8* ptr();
[[nodiscard]] const u8* ptr() const;
HSV ToHSV() const;
[[nodiscard]] HSV ToHSV() const;
HSVA ToHSVA() const;
[[nodiscard]] HSVA ToHSVA() const;
HSL ToHSL() const
{
}
HSL ToHSL() const;
HSLA ToHSLA() const;
LCH ToLCH() const {