#include <color.h>
Public Member Functions | |
constexpr | Color () |
Color (const Vector4 &value) | |
constexpr | Color (Scalar r, Scalar g, Scalar b, Scalar a) |
constexpr bool | operator== (const Color &c) const |
constexpr Color | operator+ (const Color &c) const |
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>> | |
constexpr Color | operator+ (T value) const |
constexpr Color | operator- (const Color &c) const |
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>> | |
constexpr Color | operator- (T value) const |
constexpr Color | operator* (const Color &c) const |
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>> | |
constexpr Color | operator* (T value) const |
constexpr Color | operator/ (const Color &c) const |
template<class T , class = std::enable_if_t<std::is_arithmetic_v<T>>> | |
constexpr Color | operator/ (T value) const |
constexpr Color | Premultiply () const |
constexpr Color | Unpremultiply () const |
constexpr Color | Clamp01 () const |
std::array< uint8_t, 4 > | ToR8G8B8A8 () const |
Convert to R8G8B8A8 representation. More... | |
uint32_t | ToARGB () const |
Convert to ARGB 32 bit color. More... | |
constexpr Color | WithAlpha (Scalar new_alpha) const |
Color | Blend (Color source, BlendMode blend_mode) const |
Blends an unpremultiplied destination color into a given unpremultiplied source color to form a new unpremultiplied color. More... | |
Color | ApplyColorMatrix (const ColorMatrix &color_matrix) const |
A color filter that transforms colors through a 4x5 color matrix. More... | |
Color | LinearToSRGB () const |
Convert the color from linear space to sRGB space. More... | |
Color | SRGBToLinear () const |
Convert the color from sRGB space to linear space. More... | |
constexpr bool | IsTransparent () const |
constexpr bool | IsOpaque () const |
Static Public Member Functions | |
static constexpr Color | MakeRGBA8 (uint8_t r, uint8_t g, uint8_t b, uint8_t a) |
static uint32_t | ToIColor (Color color) |
Convert this color to a 32-bit representation. More... | |
constexpr static Color | Lerp (Color a, Color b, Scalar t) |
Return a color that is linearly interpolated between colors a and b, according to the value of t. More... | |
static constexpr Color | White () |
static constexpr Color | Black () |
static constexpr Color | WhiteTransparent () |
static constexpr Color | BlackTransparent () |
static constexpr Color | Red () |
static constexpr Color | Green () |
static constexpr Color | Blue () |
static constexpr Color | AliceBlue () |
static constexpr Color | AntiqueWhite () |
static constexpr Color | Aqua () |
static constexpr Color | AquaMarine () |
static constexpr Color | Azure () |
static constexpr Color | Beige () |
static constexpr Color | Bisque () |
static constexpr Color | BlanchedAlmond () |
static constexpr Color | BlueViolet () |
static constexpr Color | Brown () |
static constexpr Color | BurlyWood () |
static constexpr Color | CadetBlue () |
static constexpr Color | Chartreuse () |
static constexpr Color | Chocolate () |
static constexpr Color | Coral () |
static constexpr Color | CornflowerBlue () |
static constexpr Color | Cornsilk () |
static constexpr Color | Crimson () |
static constexpr Color | Cyan () |
static constexpr Color | DarkBlue () |
static constexpr Color | DarkCyan () |
static constexpr Color | DarkGoldenrod () |
static constexpr Color | DarkGray () |
static constexpr Color | DarkGreen () |
static constexpr Color | DarkGrey () |
static constexpr Color | DarkKhaki () |
static constexpr Color | DarkMagenta () |
static constexpr Color | DarkOliveGreen () |
static constexpr Color | DarkOrange () |
static constexpr Color | DarkOrchid () |
static constexpr Color | DarkRed () |
static constexpr Color | DarkSalmon () |
static constexpr Color | DarkSeagreen () |
static constexpr Color | DarkSlateBlue () |
static constexpr Color | DarkSlateGray () |
static constexpr Color | DarkSlateGrey () |
static constexpr Color | DarkTurquoise () |
static constexpr Color | DarkViolet () |
static constexpr Color | DeepPink () |
static constexpr Color | DeepSkyBlue () |
static constexpr Color | DimGray () |
static constexpr Color | DimGrey () |
static constexpr Color | DodgerBlue () |
static constexpr Color | Firebrick () |
static constexpr Color | FloralWhite () |
static constexpr Color | ForestGreen () |
static constexpr Color | Fuchsia () |
static constexpr Color | Gainsboro () |
static constexpr Color | Ghostwhite () |
static constexpr Color | Gold () |
static constexpr Color | Goldenrod () |
static constexpr Color | Gray () |
static constexpr Color | GreenYellow () |
static constexpr Color | Grey () |
static constexpr Color | Honeydew () |
static constexpr Color | HotPink () |
static constexpr Color | IndianRed () |
static constexpr Color | Indigo () |
static constexpr Color | Ivory () |
static constexpr Color | Khaki () |
static constexpr Color | Lavender () |
static constexpr Color | LavenderBlush () |
static constexpr Color | LawnGreen () |
static constexpr Color | LemonChiffon () |
static constexpr Color | LightBlue () |
static constexpr Color | LightCoral () |
static constexpr Color | LightCyan () |
static constexpr Color | LightGoldenrodYellow () |
static constexpr Color | LightGray () |
static constexpr Color | LightGreen () |
static constexpr Color | LightGrey () |
static constexpr Color | LightPink () |
static constexpr Color | LightSalmon () |
static constexpr Color | LightSeaGreen () |
static constexpr Color | LightSkyBlue () |
static constexpr Color | LightSlateGray () |
static constexpr Color | LightSlateGrey () |
static constexpr Color | LightSteelBlue () |
static constexpr Color | LightYellow () |
static constexpr Color | Lime () |
static constexpr Color | LimeGreen () |
static constexpr Color | Linen () |
static constexpr Color | Magenta () |
static constexpr Color | Maroon () |
static constexpr Color | MediumAquamarine () |
static constexpr Color | MediumBlue () |
static constexpr Color | MediumOrchid () |
static constexpr Color | MediumPurple () |
static constexpr Color | MediumSeagreen () |
static constexpr Color | MediumSlateBlue () |
static constexpr Color | MediumSpringGreen () |
static constexpr Color | MediumTurquoise () |
static constexpr Color | MediumVioletRed () |
static constexpr Color | MidnightBlue () |
static constexpr Color | MintCream () |
static constexpr Color | MistyRose () |
static constexpr Color | Moccasin () |
static constexpr Color | NavajoWhite () |
static constexpr Color | Navy () |
static constexpr Color | OldLace () |
static constexpr Color | Olive () |
static constexpr Color | OliveDrab () |
static constexpr Color | Orange () |
static constexpr Color | OrangeRed () |
static constexpr Color | Orchid () |
static constexpr Color | PaleGoldenrod () |
static constexpr Color | PaleGreen () |
static constexpr Color | PaleTurquoise () |
static constexpr Color | PaleVioletRed () |
static constexpr Color | PapayaWhip () |
static constexpr Color | Peachpuff () |
static constexpr Color | Peru () |
static constexpr Color | Pink () |
static constexpr Color | Plum () |
static constexpr Color | PowderBlue () |
static constexpr Color | Purple () |
static constexpr Color | RosyBrown () |
static constexpr Color | RoyalBlue () |
static constexpr Color | SaddleBrown () |
static constexpr Color | Salmon () |
static constexpr Color | SandyBrown () |
static constexpr Color | Seagreen () |
static constexpr Color | Seashell () |
static constexpr Color | Sienna () |
static constexpr Color | Silver () |
static constexpr Color | SkyBlue () |
static constexpr Color | SlateBlue () |
static constexpr Color | SlateGray () |
static constexpr Color | SlateGrey () |
static constexpr Color | Snow () |
static constexpr Color | SpringGreen () |
static constexpr Color | SteelBlue () |
static constexpr Color | Tan () |
static constexpr Color | Teal () |
static constexpr Color | Thistle () |
static constexpr Color | Tomato () |
static constexpr Color | Turquoise () |
static constexpr Color | Violet () |
static constexpr Color | Wheat () |
static constexpr Color | Whitesmoke () |
static constexpr Color | Yellow () |
static constexpr Color | YellowGreen () |
static Color | Random () |
Public Attributes | |
Scalar | red = 0.0 |
Scalar | green = 0.0 |
Scalar | blue = 0.0 |
Scalar | alpha = 0.0 |
|
inlineconstexpr |
Definition at line 145 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), LinearToSRGB(), MakeRGBA8(), and SRGBToLinear().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 286 of file color.h.
Referenced by impeller::testing::MaskBlurVariantTest().
Color impeller::Color::ApplyColorMatrix | ( | const ColorMatrix & | color_matrix | ) | const |
A color filter that transforms colors through a 4x5 color matrix.
This filter can be used to change the saturation of pixels, convert from YUV to RGB, etc. Each channel of the output color is clamped to the 0 to 1 range.
ColorMatrix
Definition at line 301 of file color.cc.
References alpha, impeller::ColorMatrix::array, blue, Color(), green, and red.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 298 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 266 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 270 of file color.h.
Referenced by Blend(), impeller::ContentContext::ContentContext(), impeller::Paint::CreateContents(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::Canvas::SaveLayer(), impeller::testing::TEST(), and Unpremultiply().
|
inlinestaticconstexpr |
Blends an unpremultiplied destination color into a given unpremultiplied source color to form a new unpremultiplied color.
If either the source or destination are premultiplied, the result will be incorrect.
Definition at line 157 of file color.cc.
References alpha, BlackTransparent(), impeller::ComponentChoose(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), impeller::kClear, impeller::kColor, impeller::kColorBurn, impeller::kColorDodge, impeller::kDarken, impeller::kDifference, impeller::kDst, impeller::kDstATop, impeller::kDstIn, impeller::kDstOut, impeller::kDstOver, impeller::kEhCloseEnough, impeller::kExclusion, impeller::kHardLight, impeller::kHue, impeller::kLighten, impeller::kLuminosity, impeller::kModulate, impeller::kMultiply, impeller::kOverlay, impeller::kPlus, impeller::kSaturation, impeller::kScreen, impeller::kSoftLight, impeller::kSrc, impeller::kSrcATop, impeller::kSrcIn, impeller::kSrcOut, impeller::kSrcOver, impeller::kXor, impeller::Luminosity(), impeller::Vector3::Max(), impeller::Min(), impeller::Vector3::Min(), Premultiply(), impeller::Saturation(), impeller::SetLuminosity(), impeller::SetSaturation(), impeller::Vector3::x, impeller::Vector3::y, and impeller::Vector3::z.
Referenced by impeller::testing::BlendModeTest(), impeller::GetCPUColorFilterProc(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 276 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Definition at line 338 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 342 of file color.h.
Referenced by impeller::testing::BlendModeTest(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 418 of file color.h.
Referenced by impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 434 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 466 of file color.h.
Referenced by impeller::interop::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 274 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 894 of file color.h.
References alpha.
Referenced by impeller::SolidColorContents::IsOpaque().
|
inlineconstexpr |
Definition at line 892 of file color.h.
References alpha.
Referenced by impeller::TextContents::Render().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Return a color that is linearly interpolated between colors a and b, according to the value of t.
a | The lower color. |
b | The upper color. |
t | A value between 0.0f and 1.0f, inclusive. |
Definition at line 232 of file color.h.
References impeller::saturated::b.
Referenced by impeller::CreateGradientBuffer(), and impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 602 of file color.h.
Referenced by impeller::testing::BlendModeTest(), and impeller::testing::TEST_P().
Color impeller::Color::LinearToSRGB | ( | ) | const |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 152 of file color.h.
References impeller::saturated::b, and Color().
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 646 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 658 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 167 of file color.h.
References alpha, blue, green, red, and impeller::ScalarNearlyEqual().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 694 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 212 of file color.h.
References alpha, blue, green, and red.
Referenced by impeller::ApplyBlendedColor(), Blend(), impeller::DlAtlasGeometry::CreateBlendVertexBuffer(), impeller::DrawImageRectAtlasGeometry::CreateBlendVertexBuffer(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::SolidColorContents::Render(), impeller::TextContents::Render(), impeller::SolidRRectLikeBlurContents::SetColor(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlinestaticconstexpr |
Definition at line 272 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Color impeller::Color::SRGBToLinear | ( | ) | const |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Convert to ARGB 32 bit color.
Definition at line 259 of file color.h.
References ToR8G8B8A8().
Referenced by impeller::testing::CanRenderConicalGradientWithDithering(), impeller::testing::CanRenderRadialGradientWithDithering(), impeller::testing::CanRenderSweepGradientWithDithering(), impeller::GlyphProperties::Equal::operator()(), and impeller::testing::TEST_P().
|
inlinestatic |
Convert this color to a 32-bit representation.
Definition at line 159 of file color.h.
References alpha, blue, green, and red.
Referenced by impeller::testing::TEST(), and impeller::testing::toColor().
|
inlinestaticconstexpr |
|
inline |
Convert to R8G8B8A8 representation.
Definition at line 246 of file color.h.
References alpha, impeller::saturated::b, blue, green, and red.
Referenced by impeller::AppendColor(), impeller::ContentContext::ContentContext(), impeller::testing::TEST(), impeller::interop::testing::TEST_P(), and ToARGB().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 216 of file color.h.
References alpha, BlackTransparent(), blue, green, red, and impeller::ScalarNearlyEqual().
Referenced by impeller::DoColorBlend(), impeller::DoColorBlendComponents(), and impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 264 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::SolidRRectLikeBlurContents::Render(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 268 of file color.h.
Referenced by impeller::testing::TEST_P().
Definition at line 278 of file color.h.
References blue, green, and red.
Referenced by impeller::testing::BlendModeTest(), impeller::FirstPassDispatcher::drawTextFrame(), impeller::Canvas::DrawVertices(), impeller::SolidColorContents::GetColor(), impeller::TextContents::GetColor(), impeller::TextContents::SetTextProperties(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 842 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Scalar impeller::Color::alpha = 0.0 |
The alpha component of the color (0 to 1)
Definition at line 143 of file color.h.
Referenced by impeller::ApplyBlendedColor(), ApplyColorMatrix(), Blend(), impeller::testing::BlendModeTest(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::Paint::CreateContents(), impeller::Canvas::DrawAtlas(), impeller::Canvas::DrawImageRect(), impeller::DlDispatcherBase::drawShadow(), impeller::Canvas::DrawVertices(), impeller::EncodeCommandsInReactor(), impeller::SolidColorContents::GetColor(), impeller::TextContents::GetColor(), IsOpaque(), IsTransparent(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), impeller::Canvas::SaveLayer(), impeller::android::SurfaceTransaction::SetBackgroundColor(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::interop::ToDisplayListType(), ToIColor(), impeller::interop::ToImpellerType(), impeller::ToMTLClearColor(), ToR8G8B8A8(), impeller::ToVector(), Unpremultiply(), and impeller::VKClearValueFromColor().
Scalar impeller::Color::blue = 0.0 |
The blue color component (0 to 1)
Definition at line 138 of file color.h.
Referenced by ApplyColorMatrix(), impeller::testing::BlendModeTest(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), impeller::android::SurfaceTransaction::SetBackgroundColor(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::interop::ToDisplayListType(), ToIColor(), impeller::interop::ToImpellerType(), impeller::ToMTLClearColor(), ToR8G8B8A8(), impeller::ToRGB(), impeller::ToVector(), Unpremultiply(), impeller::VKClearValueFromColor(), and WithAlpha().
Scalar impeller::Color::green = 0.0 |
The green color component (0 to 1)
Definition at line 133 of file color.h.
Referenced by ApplyColorMatrix(), impeller::testing::BlendModeTest(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), impeller::android::SurfaceTransaction::SetBackgroundColor(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::interop::ToDisplayListType(), ToIColor(), impeller::interop::ToImpellerType(), impeller::ToMTLClearColor(), ToR8G8B8A8(), impeller::ToRGB(), impeller::ToVector(), Unpremultiply(), impeller::VKClearValueFromColor(), and WithAlpha().
Scalar impeller::Color::red = 0.0 |
The red color component (0 to 1)
Definition at line 128 of file color.h.
Referenced by ApplyColorMatrix(), impeller::testing::BlendModeTest(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), impeller::android::SurfaceTransaction::SetBackgroundColor(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::interop::ToDisplayListType(), ToIColor(), impeller::interop::ToImpellerType(), impeller::ToMTLClearColor(), ToR8G8B8A8(), impeller::ToRGB(), impeller::ToVector(), Unpremultiply(), impeller::VKClearValueFromColor(), and WithAlpha().