Added clamp() to color from Godot4.

This commit is contained in:
Relintai 2022-08-08 02:52:30 +02:00
parent eff5153375
commit ffd29397f8

View File

@ -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;