Click or drag to resize

ColorRGBACreateFromArgb Method (Byte, Byte, Byte, Byte)

Constructs a RGBA color from the four ARGB components (alpha, red, green, and blue) values.

Namespace:  Rhino.Display
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 8.0
Syntax
public static ColorRGBA CreateFromArgb(
	byte alpha,
	byte red,
	byte green,
	byte blue
)

Parameters

alpha
Type: SystemByte
The alpha component. Valid values are 0 through 255.
red
Type: SystemByte
The red component. Valid values are 0 through 255.
green
Type: SystemByte
The green component. Valid values are 0 through 255.
blue
Type: SystemByte
The blue component. Valid values are 0 through 255.

Return Value

Type: ColorRGBA
A RGBA color with the specified component values.
See Also