|
| bool | rack::color::isEqual (NVGcolor a, NVGcolor b) |
| | Returns whether all RGBA color components are equal.
|
| NVGcolor | rack::color::clamp (NVGcolor a) |
| | Limits RGBA color components between 0 and 1.
|
| NVGcolor | rack::color::minus (NVGcolor a, NVGcolor b) |
| | Subtracts RGB color components elementwise.
|
| NVGcolor | rack::color::plus (NVGcolor a, NVGcolor b) |
| | Adds RGB color components elementwise.
|
| NVGcolor | rack::color::mult (NVGcolor a, NVGcolor b) |
| | Multiplies RGB color components elementwise.
|
| NVGcolor | rack::color::mult (NVGcolor a, float x) |
| | Multiplies RGB color components by a scalar.
|
| NVGcolor | rack::color::lerp (NVGcolor a, NVGcolor b, float t) |
| | Interpolates RGBA color components.
|
| NVGcolor | rack::color::screen (NVGcolor a, NVGcolor b) |
| | Screen blending with alpha compositing.
|
| NVGcolor | rack::color::alpha (NVGcolor a, float alpha) |
| | Multiplies alpha value by a scalar.
|
| NVGcolor | rack::color::fromHexString (std::string s) |
| | Converts from hex string of the form "#RRGGBB" or "#RRGGBBAA".
|
| std::string | rack::color::toHexString (NVGcolor c) |
| | Converts color to hex string of the form "#RRGGBB" if opaque or "#RRGGBBAA" if alpha < 255.
|
|
| static const NVGcolor | rack::color::BLACK_TRANSPARENT = nvgRGBA(0x00, 0x00, 0x00, 0x00) |
| static const NVGcolor | rack::color::WHITE_TRANSPARENT = nvgRGBA(0xff, 0xff, 0xff, 0x00) |
| static const NVGcolor | rack::color::BLACK = nvgRGB(0x00, 0x00, 0x00) |
| static const NVGcolor | rack::color::RED = nvgRGB(0xff, 0x00, 0x00) |
| static const NVGcolor | rack::color::GREEN = nvgRGB(0x00, 0xff, 0x00) |
| static const NVGcolor | rack::color::BLUE = nvgRGB(0x00, 0x00, 0xff) |
| static const NVGcolor | rack::color::CYAN = nvgRGB(0x00, 0xff, 0xff) |
| static const NVGcolor | rack::color::MAGENTA = nvgRGB(0xff, 0x00, 0xff) |
| static const NVGcolor | rack::color::YELLOW = nvgRGB(0xff, 0xff, 0x00) |
| static const NVGcolor | rack::color::WHITE = nvgRGB(0xff, 0xff, 0xff) |