Click or drag to resize

ObjectAttributesDrawColor Method (File3dm)

Gets the draw color of an object in a file, which is based on the object's color source: the layer's color, the object's color, or the color of its material (the base color of a physically based material, else the diffuse color). Unlike the document overload in Rhino, black and white are never switched to suit a viewport background.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.1
Syntax
public Color DrawColor(
	File3dm file
)

Parameters

file
Type: Rhino.FileIOFile3dm
The file that contains the object's layer and material.

Return Value

Type: Color
The draw color.
See Also