Color.getColor Method
Parent Object:
ColorDefined in namespace "adsk::core" and the header file is <Core/Application/Color.h>
Description
Gets all of the information defining this color.
Syntax
"color_var" is a variable referencing a Color object.
(returnValue, red, green, blue, opacity) = color_var.getColor()
|
#include <Core/Application/Color.h
// Declare the output arguments. short red; short green; short blue; short opacity; boolean returnValue = color_var->getColor(red, green, blue, opacity);
|
Return Value
boolean |
Returns true if getting the color information was successful. |
Parameters
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. A value of 255 indicates it is completely opaque. |
Version
Introduced in version August 2014