| 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::kSrc , impeller::kDst , impeller::kSrcOver , impeller::kDstOver , impeller::kSrcIn , impeller::kDstIn , impeller::kSrcOut , impeller::kDstOut , impeller::kSrcATop , impeller::kDstATop , 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::kLastMode = kLuminosity , impeller::kDefaultMode = kSrcOver }

## 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)
std::ostream & | std::operator<< (std::ostream &out, const impeller::BlendMode &mode)

## Macro Definition Documentation

## ◆ IMPELLER_FOR_EACH_BLEND_MODE

#define IMPELLER_FOR_EACH_BLEND_MODE | ( |  | V | ) |

Value:
V(Clear) \
V(Src) \
V(Dst) \
V(SrcOver) \
V(DstOver) \
V(SrcIn) \
V(DstIn) \
V(SrcOut) \
V(DstOut) \
V(SrcATop) \
V(DstATop) \
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.