|
| GF_API | GfColor () |
| | The default constructor creates black, in the "lin_rec709" color space.
|
| |
| GF_API | GfColor (const GfColorSpace &colorSpace) |
| | Construct a black color in the given color space.
|
| |
| GF_API | GfColor (const GfVec3f &rgb, const GfColorSpace &colorSpace) |
| | Construct a color from an RGB tuple and color space.
|
| |
| GF_API | GfColor (const GfColor &color, const GfColorSpace &colorSpace) |
| | Construct a color by converting the source color into the specified color space.
|
| |
| GF_API void | SetFromPlanckianLocus (float kelvin, float luminance) |
| | Set the color from the Planckian locus (blackbody radiation) temperature in Kelvin, in the existing color space.
|
| |
| GfVec3f | GetRGB () const |
| | Get the RGB tuple.
|
| |
| GfColorSpace | GetColorSpace () const |
| | Get the color space.
|
| |
| bool | operator== (const GfColor &rh) const |
| | Equality operator.
|
| |
| bool | operator!= (const GfColor &rh) const |
| | Inequality operator.
|
| |
Represents a color in a specific color space.
Basic type: Color
The GfColor class represents a color in a specific color space. It provides various methods for constructing, manipulating, and retrieving color values.
The color values are stored as an RGB tuple and are associated with a color space. The color space determines the interpretation of the RGB values. The values are colorimetric, but not photometric as there is no normalizing constant (such as a luminance factor).
This class provides methods for setting and getting color values, converting between color spaces, normalizing luminance, and comparing colors.
Definition at line 41 of file color.h.