3ds Max C++ API Reference
|
#include <color.h>
Public Attributes | |
float | r = 0.f |
These values are in the range 0.0 to 1.0. More... | |
float | g = 0.f |
These values are in the range 0.0 to 1.0. More... | |
float | b = 0.f |
These values are in the range 0.0 to 1.0. More... | |
Kelvin temperature, black body | |
float | FindClosestMatchingKelvinTemperature () const |
Finds the kelvin temperature which, when converted to RGB, would generate the closest possible color to the current RGB value. More... | |
static Color | FromKelvinTemperature (const float kelvin_temperature, const float intensity=1.0f) |
Calculates the chromacity of a black body radiator at a given temperature in kelvins. More... | |
|
default |
|
inline |
|
inline |
|
explicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void ClampMinMax | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Calculates the chromacity of a black body radiator at a given temperature in kelvins.
kelvin_temperature | The black body temperature in kelvins. |
intensity | The intensity of the color to be generated (the luminance Y of the CIE XYZ color from which the RGB color is converted). |
float FindClosestMatchingKelvinTemperature | ( | ) | const |
Finds the kelvin temperature which, when converted to RGB, would generate the closest possible color to the current RGB value.
For a color that was generated from a kelvin temperature, the returned value should match that temperature exactly. But for an arbitrary color, the returned value will only be an approximation (and may vary wildly if the color is very far from the set of valid black body colors).
float r = 0.f |
These values are in the range 0.0 to 1.0.
float g = 0.f |
These values are in the range 0.0 to 1.0.
float b = 0.f |
These values are in the range 0.0 to 1.0.