From ffd29397f8bd734d3fbce61c75aff5ee572471b5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 8 Aug 2022 02:52:30 +0200 Subject: [PATCH] Added clamp() to color from Godot4. --- core/color.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/color.h b/core/color.h index 97cb7a3ed..0aca209ed 100644 --- a/core/color.h +++ b/core/color.h @@ -85,6 +85,8 @@ struct _NO_DISCARD_CLASS_ Color { bool is_equal_approx(const Color &p_color) const; + Color clamp(const Color &p_min = Color(0, 0, 0, 0), const Color &p_max = Color(1, 1, 1, 1)) const; + void invert(); void contrast(); Color inverted() const;