Color.create Method
Parent Object: ColorDefined in namespace "adsk::core" and the header file is <Core/Application/Color.h>
Description
Creates a new color.
Syntax
Return Value
Type | Description |
Color | Returns the newly created color or null if the creation failed. |
Parameters
Name | Type | Description |
red | short | The red component of the color. The value can be 0 to 255. |
green | short | The green component of the color. The value can be 0 to 255. |
blue | short | The blue component of the color. The value can be 0 to 255. |
opacity | short | The opacity of the color. The value can be 0 to 255. |