Click or drag to resize

ColorColorN Method

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
C#
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: Color
The constructed color.
See Also