Click or drag to resize

Color Constructor

Initializes a new Color instance with the specified channel values.

Namespace:  DotNetBrowser.Ui
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.5
Syntax
C#
public Color(
	float red,
	float green,
	float blue,
	float alpha = 1f
)

Parameters

red
Type: SystemSingle
The red channel value.
green
Type: SystemSingle
The green channel value.
blue
Type: SystemSingle
The blue channel value.
alpha (Optional)
Type: SystemSingle
The alpha channel value.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException thrown when any of the parameters is outside the 0..1 range.
See Also