Color Constructor


Color Constructor

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

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public Color(
	byte red,
	byte green,
	byte blue
)

Parameters

red Byte
The red channel of the color that ranges from 0 to 255.
green Byte
The green channel of the color that ranges from 0 to 255.
blue Byte
The blue channel of the color that ranges from 0 to 255.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →