CustomGraphicsCoordinates.setColor Method

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

Description

Sets the color of the coordinate at the specified index.

Syntax

"customGraphicsCoordinates_var" is a variable referencing a CustomGraphicsCoordinates object.
returnValue = customGraphicsCoordinates_var.setColor(index, color)
"customGraphicsCoordinates_var" is a variable referencing a CustomGraphicsCoordinates object.

#include <Fusion/Graphics/CustomGraphicsCoordinates.h>

returnValue = customGraphicsCoordinates_var->setColor(index, color);

Return Value

Type Description
boolean Returns true if setting the color was successful.

Parameters

Name Type Description
index integer The index of the coordinate to set. The first coordinate has an index of 0.
color Color The color value as a Color object.

Version

Introduced in version September 2017