Add Color.from_rgba8 and deprecate Color8
This commit is contained in:
@ -2104,11 +2104,12 @@ static void _register_variant_builtin_methods_math() {
|
||||
bind_static_method(Color, hex64, sarray("hex"), varray());
|
||||
bind_static_method(Color, html, sarray("rgba"), varray());
|
||||
bind_static_method(Color, html_is_valid, sarray("color"), 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());
|
||||
bind_static_method(Color, from_rgba8, sarray("r8", "g8", "b8", "a8"), varray(255));
|
||||
}
|
||||
|
||||
static void _register_variant_builtin_methods_misc() {
|
||||
|
||||
Reference in New Issue
Block a user