From ea6c1cc92953f70c3f3497affc2c8a0fd2bd038f Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 29 Mar 2025 18:20:17 +0300 Subject: [PATCH] fix --- include/omath/color.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/omath/color.hpp b/include/omath/color.hpp index c82c19d..c6a7263 100644 --- a/include/omath/color.hpp +++ b/include/omath/color.hpp @@ -118,7 +118,7 @@ namespace omath { Clamp(0.f, 1.f); } - consteval void SetHue(const float hue) + constexpr void SetHue(const float hue) { auto hsv = ToHSV(); hsv.hue = hue; @@ -126,7 +126,7 @@ namespace omath *this = FromHSV(hsv); } - consteval void SetSaturation(const float saturation) + constexpr void SetSaturation(const float saturation) { auto hsv = ToHSV(); hsv.saturation = saturation; @@ -134,7 +134,7 @@ namespace omath *this = FromHSV(hsv); } - consteval void SetValue(const float value) + constexpr void SetValue(const float value) { auto hsv = ToHSV(); hsv.value = value;