#include <ColorC.h>
Color class defines a four component color type. The components are red, green, blue and alpha. All components are handled similar inside the class.
The assumed color range is 0..1.
This class is implemented by the system.
|
Copy constructor.
|
|
Default constructor.
|
|
Default destructor.
|
|
Converts color from unsigned integer values. All values are in range 0..255. |
|
Multiplies each component of the color by matching component in the specified argument and returns the result.
|
|
Multiplies each color component by the specified number and returns the result.
|
|
Multiplies each color component by the specified number.
|
|
Constant float pointer cast operator.
|
|
Returns true if colors are not equal, else false.
|
|
Adds the color specified by the argument to the color and returns the result.
|
|
Adds the color specified by the argument to the color.
|
|
Subtracts the color specified by the argument from the color and returns the result.
|
|
Returns negated color.
|
|
Subtracts the color specified by the argument from the color.
|
|
Divides each color component by the specified number and returns the result.
|
|
Divides each color component by the specified number.
|
|
Returns true if both colors are equal, else false.
|
|
Returns component of the color. The index values from 0 to 3 corresponds to components R, G, B, and A respectively. There are two versions of this method, this version is for retrieving the values. |
|
Returns component of the color. The index values from 0 to 3 corresponds to components R, G, B, and A respectively. There are two versions of this method, this version enables to assign values. |
|
Multiplies each color component by the specified number and returns the result.
|