From 7e4a6134bfb3a705984ac600ee74aeef731a8a4b Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 23 Jun 2025 06:14:06 +0300 Subject: [PATCH] added new method --- include/omath/color.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/omath/color.hpp b/include/omath/color.hpp index 3513e74..4172062 100644 --- a/include/omath/color.hpp +++ b/include/omath/color.hpp @@ -166,5 +166,12 @@ namespace omath { return {0.f, 0.f, 1.f, 1.f}; } +#ifdef OMATH_IMGUI_INTEGRATION + [[nodiscard]] + ImColor to_im_color() const noexcept + { + return {to_im_vec4()}; + } +#endif }; } // namespace omath