You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add API for HSL conversion
Math ported pretty much 1:1 from https://en.wikipedia.org/wiki/HSL_and_HSV Style doesn't match the existing HSV code exactly, but should be close enough.
This commit is contained in:
@@ -139,6 +139,10 @@ void register_named_setters_getters() {
|
||||
REGISTER_MEMBER(Color, h);
|
||||
REGISTER_MEMBER(Color, s);
|
||||
REGISTER_MEMBER(Color, v);
|
||||
|
||||
REGISTER_MEMBER(Color, hsl_h);
|
||||
REGISTER_MEMBER(Color, hsl_s);
|
||||
REGISTER_MEMBER(Color, hsl_l);
|
||||
}
|
||||
|
||||
void unregister_named_setters_getters() {
|
||||
|
||||
Reference in New Issue
Block a user