Constructor Color
- Namespace
- DotNetBrowser.Ui
- Assembly
- DotNetBrowser.dll
Color(float, float, float, float)
Initializes a new Color instance with the specified channel values.
public Color(float red, float green, float blue, float alpha = 1)
Parameters
red
floatThe red channel value.
green
floatThe green channel value.
blue
floatThe blue channel value.
alpha
floatThe alpha channel value.
Exceptions
- ArgumentOutOfRangeException
thrown when any of the parameters is outside the
0..1
range.