CustomGraphicsCoordinates.getColor Method

Parent Object: CustomGraphicsCoordinates
Defined in namespace "adsk::fusion" and the header file is <Fusion/Graphics/CustomGraphicsCoordinates.h>

Description

Gets the color assigned to the coordinate at the specified index.

Syntax

"customGraphicsCoordinates_var" is a variable referencing a CustomGraphicsCoordinates object.
returnValue = customGraphicsCoordinates_var.getColor(index)
"customGraphicsCoordinates_var" is a variable referencing a CustomGraphicsCoordinates object.

#include <Fusion/Graphics/CustomGraphicsCoordinates.h>

returnValue = customGraphicsCoordinates_var->getColor(index);

Return Value

Type Description
Color Returns the color associated with the index. Can also return null in the case where there is no color assigned.

Parameters

Name Type Description
index integer The index of the color to return. The first color has an index of 0.

Version

Introduced in version September 2017