mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 13:12:42 +00:00
Merge pull request #82845 from Hysterelius/master
Color: Expose OKHSL properties
This commit is contained in:
commit
30d87229ed
@ -141,6 +141,10 @@ void register_named_setters_getters() {
|
||||
REGISTER_MEMBER(Color, h);
|
||||
REGISTER_MEMBER(Color, s);
|
||||
REGISTER_MEMBER(Color, v);
|
||||
|
||||
REGISTER_MEMBER(Color, ok_hsl_h);
|
||||
REGISTER_MEMBER(Color, ok_hsl_s);
|
||||
REGISTER_MEMBER(Color, ok_hsl_l);
|
||||
}
|
||||
|
||||
void unregister_named_setters_getters() {
|
||||
|
@ -495,6 +495,15 @@
|
||||
<member name="h" type="float" setter="" getter="" default="0.0">
|
||||
The HSV hue of this color, on the range 0 to 1.
|
||||
</member>
|
||||
<member name="ok_hsl_h" type="float" setter="" getter="" default="0.0">
|
||||
The OKHSL hue of this color, on the range 0 to 1.
|
||||
</member>
|
||||
<member name="ok_hsl_l" type="float" setter="" getter="" default="0.0">
|
||||
The OKHSL lightness of this color, on the range 0 to 1.
|
||||
</member>
|
||||
<member name="ok_hsl_s" type="float" setter="" getter="" default="0.0">
|
||||
The OKHSL saturation of this color, on the range 0 to 1.
|
||||
</member>
|
||||
<member name="r" type="float" setter="" getter="" default="0.0">
|
||||
The color's red component, typically on the range of 0 to 1.
|
||||
</member>
|
||||
|
Loading…
Reference in New Issue
Block a user