Initializes a new
Color instance with the specified channel values.
Namespace:
DotNetBrowser.Ui
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax 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 Exception | Condition |
---|
ArgumentOutOfRangeException | thrown when any of the parameters is outside the 0..1 range. |
See Also