Color Constructor (Object, Single, Single, Single, Single) |
Initializes a new instance of the
Color struct with the specified native control object.
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Color(
Object controlObject,
float red,
float green,
float blue,
float alpha
)
Public Sub New (
controlObject As Object,
red As Single,
green As Single,
blue As Single,
alpha As Single
)
new :
controlObject : Object *
red : float32 *
green : float32 *
blue : float32 *
alpha : float32 -> Color
Parameters
- controlObject
- Type: SystemObject
Native control object representing this color. - red
- Type: SystemSingle
Red component (0-1) - green
- Type: SystemSingle
Green component (0-1) - blue
- Type: SystemSingle
Blue component (0-1) - alpha
- Type: SystemSingle
Alpha component (0-1)
Remarks
Some platforms (e.g. macOS) have system color objects that change their RGB value automatically based on the display mode,
such as light & dark.
See Also