| Flutter Impeller |

Classes | Namespaces | Macros | Enumerations | Functions
color.h File Reference
`#include <stdint.h>`
`#include <algorithm>`
`#include <array>`
`#include <cstdint>`
`#include <cstdlib>`
`#include <ostream>`
`#include <type_traits>`
`#include "impeller/geometry/scalar.h"`
`#include "impeller/geometry/type_traits.h"`

Go to the source code of this file.

## Classes
struct | impeller::ColorMatrix
struct | impeller::Color

## Namespaces
| impeller
| std

## Macros
#define | IMPELLER_FOR_EACH_BLEND_MODE(V)

## Enumerations
enum class | impeller::YUVColorSpace { impeller::kBT601LimitedRange , impeller::kBT601FullRange }
enum class | impeller::BlendMode : uint8_t { impeller::kClear = 0 , impeller::kSource , impeller::kDestination , impeller::kSourceOver , impeller::kDestinationOver , impeller::kSourceIn , impeller::kDestinationIn , impeller::kSourceOut , impeller::kDestinationOut , impeller::kSourceATop , impeller::kDestinationATop , impeller::kXor , impeller::kPlus , impeller::kModulate , impeller::kScreen , impeller::kOverlay , impeller::kDarken , impeller::kLighten , impeller::kColorDodge , impeller::kColorBurn , impeller::kHardLight , impeller::kSoftLight , impeller::kDifference , impeller::kExclusion , impeller::kMultiply , impeller::kHue , impeller::kSaturation , impeller::kColor , impeller::kLuminosity , impeller::kLast = kLuminosity }

## Functions
const char * | impeller::BlendModeToString (BlendMode blend_mode)
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>>
constexpr Color | impeller::operator+ (T value, const Color &c)
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>>
constexpr Color | impeller::operator- (T value, const Color &c)
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>>
constexpr Color | impeller::operator* (T value, const Color &c)
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>>
constexpr Color | impeller::operator/ (T value, const Color &c)
std::string | impeller::ColorToString (const Color &color)
std::ostream & | std::operator<< (std::ostream &out, const impeller::Color &c)

## Macro Definition Documentation

## ◆ IMPELLER_FOR_EACH_BLEND_MODE

#define IMPELLER_FOR_EACH_BLEND_MODE | ( |  | V | ) |

Value:
V(Clear) \
V(Source) \
V(Destination) \
V(SourceOver) \
V(DestinationOver) \
V(SourceIn) \
V(DestinationIn) \
V(SourceOut) \
V(DestinationOut) \
V(SourceATop) \
V(DestinationATop) \
V(Xor) \
V(Plus) \
V(Modulate) \
V(Screen) \
V(Overlay) \
V(Darken) \
V(Lighten) \
V(ColorDodge) \
V(ColorBurn) \
V(HardLight) \
V(SoftLight) \
V(Difference) \
V(Exclusion) \
V(Multiply) \
V(Hue) \
V(Saturation) \
V(Color) \
V(Luminosity)
impeller::Saturation
static constexpr Scalar Saturation(Vector3 color)
Definition: color.cc:89
impeller::Luminosity
static constexpr Scalar Luminosity(Vector3 color)
Definition: color.cc:63

Definition at line 19 of file color.h.