Color Constructor


Constructor that takes the red, green and blue channels of the color.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public Color(
	byte red,
	byte green,
	byte blue
)
Visual Basic
Public Sub New ( _
	red As Byte, _
	green As Byte, _
	blue As Byte _
)
Visual C++
public:
Color(
	unsigned char red, 
	unsigned char green, 
	unsigned char blue
)

Parameters

red
Type: SystemByte
The red channel of the color that ranges from 0 to 255.
green
Type: SystemByte
The green channel of the color that ranges from 0 to 255.
blue
Type: SystemByte
The blue channel of the color that ranges from 0 to 255.

See Also