Allow picking similar colours using OKHSL.
This commit is contained in:
parent
36bd26dc75
commit
1b776a6e7a
13 changed files with 1606 additions and 39 deletions
|
|
@ -1675,6 +1675,8 @@ static void _register_variant_builtin_methods() {
|
|||
bind_static_method(Color, get_named_color, sarray("idx"), varray());
|
||||
bind_static_method(Color, from_string, sarray("str", "default"), varray());
|
||||
bind_static_method(Color, from_hsv, sarray("h", "s", "v", "alpha"), varray(1.0));
|
||||
bind_static_method(Color, from_ok_hsl, sarray("h", "s", "l", "alpha"), varray(1.0));
|
||||
|
||||
bind_static_method(Color, from_rgbe9995, sarray("rgbe"), varray());
|
||||
|
||||
/* RID */
|
||||
|
|
|
|||
|
|
@ -329,4 +329,8 @@ SETGET_NUMBER_STRUCT_FUNC(Color, double, h, set_h, get_h)
|
|||
SETGET_NUMBER_STRUCT_FUNC(Color, double, s, set_s, get_s)
|
||||
SETGET_NUMBER_STRUCT_FUNC(Color, double, v, set_v, get_v)
|
||||
|
||||
SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_h, set_ok_hsl_h, get_ok_hsl_h)
|
||||
SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_s, set_ok_hsl_s, get_ok_hsl_s)
|
||||
SETGET_NUMBER_STRUCT_FUNC(Color, double, ok_hsl_l, set_ok_hsl_l, get_ok_hsl_l)
|
||||
|
||||
#endif // VARIANT_SETGET_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue