Color Constructor (Single, Single, Single, Single) |
Initializes a new instance of the Color object with the specified red, green, blue, and alpha components
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Color(
float red,
float green,
float blue,
float alpha = 1f
)
Public Sub New (
red As Single,
green As Single,
blue As Single,
Optional alpha As Single = 1F
)
new :
red : float32 *
green : float32 *
blue : float32 *
?alpha : float32
(* Defaults:
let _alpha = defaultArg alpha 1f
*)
-> Color
Parameters
- red
- Type: SystemSingle
Red component (0-1) - green
- Type: SystemSingle
Green component (0-1) - blue
- Type: SystemSingle
Blue component (0-1) - alpha (Optional)
- Type: SystemSingle
Alpha component (0-1)
See Also