Returns a color according to the standardized name, with the
specified alpha value. Supported color names are the same as
the constants defined in
Colors.
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public static Color ColorN(
string name,
float alpha = 1f
)
Parameters
- name
- Type: SystemString
The name of the color. - alpha (Optional)
- Type: SystemSingle
The alpha (transparency) component represented on the range of 0 to 1. Default: 1.
Return Value
Type:
ColorThe constructed color.
See Also