Classes | |
class | ColorSwatchGroup |
class | ColorSwatchData |
Macros | |
#define | LIB_COLORCHOOSER |
#define | LIB_COLORSWATCHDATA |
#define | LIB_COLORSWATCHGROUP |
Typedefs | |
using | ColorAlphaArray = maxon::BaseArray< maxon::ColorA > |
Enumerations | |
enum class | SWATCH_CATEGORY { GLOBAL , DOCUMENT } |
Variables | |
class ColorSwatchGroup | MAXON_ENUM_LIST |
#define LIB_COLORCHOOSER |
ColorChooser library ID.
#define LIB_COLORSWATCHDATA |
ColorSwatchData library ID.
#define LIB_COLORSWATCHGROUP |
ColorSwatchGroup library ID.
using ColorAlphaArray = maxon::BaseArray<maxon::ColorA> |
|
strong |
enum SWATCH_CATEGORY MAXON_ENUM_LIST | ( | SWATCH_CATEGORY | ) |
Converts a RGB color to string formatted based on the color range defined in Cinema 4D preferences: WPREF_COLOR_RGBRANGE Example: The string result for the color Vector
(0.45, 0.32, 1.0) will be "115, 82, 255" if WPREF_COLOR_RGBRANGE is configured to COLORSYSTEM_RANGE_255.
[in] | color | The RGB color to convert to string. Its components must be in range [0.0, 1.0]. |
Converts a HSV color to string. Example: The string result for the color Vector
(0.45, 0.32, 1.0) will be "251.471 °, 68 %, 100 %"
[in] | color | The HSV color to convert to string. Its components must be in range [0.0, 1.0]. |
Converts a RGB float color component in range [0.0, 1.0] to 8-bit (range [0, 255]).
[in] | colorComponent | The color component to be converted. Must be in range [0.0, 1.0]. |
Converts a RGB 8bit color component (range [0, 255]) to float in range [0.0, 1.0].
[in] | colorComponent | The 8-bit color component to be converted. Must be in range [0, 255]. |
Converts a RGB float color in range [0.0, 1.0] to 8-bit color (range [0, 255]).
[in] | floatColor | The color to be converted. Must be in range [0.0, 1.0]. |
[out] | red | The converted 8-bit red color component. |
[out] | green | The converted 8-bit green color component. |
[out] | blue | The converted 8-bit blue color component. |
Converts a RGB 8-bit color (range [0, 255]) to float color in range [0.0, 1.0].
[in] | red | The 8-bit color component to be converted. Must be in range [0, 255]. |
[in] | green | The 8-bit color component to be converted. Must be in range [0, 255]. |
[in] | blue | The 8-bit color component to be converted. Must be in range [0, 255]. |
Converts a RGB float color component in range [0.0, 1.0] to 16-bit (range [0, 65535]).
[in] | colorComponent | The color component to be converted. Must be in range [0.0, 1.0]. |
Converts a RGB 16-bit color component (range [0, 65535]) to float in range [0.0, 1.0].
[in] | colorComponent | The 16-bit color component to be converted. Must be in range [0, 65535]. |
Converts a RGB float color in range [0.0, 1.0] to 16-bit color (range [0, 65535]).
[in] | floatColor | The color to be converted. Must be in range [0.0, 1.0]. |
[out] | red | The converted 16-bit red color component. |
[out] | green | The converted 16-bit green color component. |
[out] | blue | The converted 16-bit blue color component. |
Converts a RGB 16-bit color (range [0, 65535]) to float color in range [0.0, 1.0].
[in] | red | The 8-bit color component to be converted. Must be in range [0, 65535]. |
[in] | green | The 8-bit color component to be converted. Must be in range [0, 65535]. |
[in] | blue | The 8-bit color component to be converted. Must be in range [0, 65535]. |
Converts color Kelvin temperature to RGB value.
[in] | kelvinDegrees | The Kelvin temperature value in Kelvin degrees. Useful range: [1000.0, 10000.0] °K |
[in] | tint | Offsets the color temperature from green (negative value) to magenta (positive value). Set to 0.0 to disable tinting. Value will be clamped to range [-1.0, 1.0]. |
Bool ColorHarmonyGetComplementary | ( | const Vector & | color, |
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates a Complementary Color Harmony palette from color. Contains the input color and its opposite color in a Color Wheel.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyGetSplitComplementary | ( | const Vector & | color, |
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates a Split Complementary Color Harmony palette from color. Contains the input color and the two analogous colors to its complementary color The complementary color is calculated rotating 180° the hue of the original color in HSV space.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyGetTetradic | ( | const Vector & | color, |
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates a Tetradric Color Harmony palette. The rectangle or tetradic color scheme uses four colors arranged into two complementary pairs.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyGetAnalogous | ( | const Vector & | color, |
Int | colorCount, | ||
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates an Analogous Color Harmony palette. Analogous color schemes use colors that are next to each other on the color wheel, i.e. 30° far away.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | colorCount | Number of colors to generate. Because of input color is added as well, the resulting palette will have colorCount + 1 colors. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyGetEquiangular | ( | const Vector & | color, |
Int | colorCount, | ||
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates an Equiangular Color Harmony palette. All colors are evenly arranged around the color wheel.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | colorCount | Number of colors to generate. Because of input color is added as well, the resulting palette will have colorCount + 1 colors. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyRotateColor | ( | const Vector & | color, |
Int | colorCount, | ||
Float | angle, | ||
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates a palette composed by a defined amount of colors whose hue is separated by a defined angle in HSV color space.
[in] | color | The color to generate the palette. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | colorCount | Number of colors to generate. Because of input color is added as well, the resulting palette will have colorCount + 1 colors. |
[in] | angle | Rotation angle in radians. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
Bool ColorHarmonyInterpolateColors | ( | const Vector & | color1, |
const Vector & | color2, | ||
Int | colorCount, | ||
Bool | ryb, | ||
maxon::BaseArray< Vector > & | palette | ||
) |
Generates a palette composed by a defined amount of colors interpolated between color1 and color2 in HSV color space. All 3 HSV values will be interpolated.
[in] | color1 | The first generator color. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | color2 | The second generator color. This color will be added to the resulting palette as well, and converted to RYB space if enabled. |
[in] | colorCount | Number of colors to generate. Because of the two input colors are added as well, the resulting palette will have colorCount + 2 colors. |
[in] | ryb | Set to true to use RYB (red-yellow-blue) HSV space, set to false to use RGB (red-green-blue) HSV space. RYB generates visually more nicer palettes, but is less accurate because is smaller that RGB space. This means different RGB values could be converted to the same RYB value. |
[out] | palette | List to add generated colors to. Data is preserved. |
class ColorSwatchGroup MAXON_ENUM_LIST |