#include <color.h>
Public Member Functions | |
| constexpr | Color () |
| Color (const ColorHSB &hsbColor) | |
| 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 |
| constexpr std::array< uint8_t, 4 > | ToR8G8B8A8 () const |
| Convert to R8G8B8A8 representation. 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 constexpr 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 143 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), LinearToSRGB(), MakeRGBA8(), and SRGBToLinear().
|
explicit |
|
explicit |
|
inlinestaticconstexpr |
Definition at line 272 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
| 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 366 of file color.cc.
References alpha, impeller::ColorMatrix::array, blue, Color(), green, and red.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 256 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 260 of file color.h.
Referenced by Blend(), impeller::testing::TEST(), impeller::testing::TEST_P(), 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 222 of file color.cc.
References alpha, BlackTransparent(), impeller::ComponentChoose(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), impeller::kClear, impeller::kColor, impeller::kColorBurn, impeller::kColorDodge, impeller::kDarken, impeller::kDestination, impeller::kDestinationATop, impeller::kDestinationIn, impeller::kDestinationOut, impeller::kDestinationOver, impeller::kDifference, 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::kSource, impeller::kSourceATop, impeller::kSourceIn, impeller::kSourceOut, impeller::kSourceOver, impeller::kXor, impeller::Luminosity(), impeller::Vector3::Max(), impeller::Vector3::Min(), impeller::Min(), Premultiply(), impeller::Saturation(), impeller::SetLuminosity(), impeller::SetSaturation(), impeller::Vector3::x, impeller::Vector3::y, and impeller::Vector3::z.
Referenced by impeller::testing::BlendModeTest(), impeller::EntityPass::GetClearColor(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 266 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 328 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 332 of file color.h.
Referenced by 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 408 of file color.h.
Referenced by impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 424 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 456 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 264 of file color.h.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 880 of file color.h.
References alpha.
Referenced by impeller::SolidColorContents::IsOpaque().
|
inlineconstexpr |
|
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.
Referenced by impeller::CreateGradientBuffer(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), and impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
| Color impeller::Color::LinearToSRGB | ( | ) | const |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 152 of file color.h.
References Color().
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 604 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 648 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
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 Blend(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), impeller::EntityPass::GetClearColor(), impeller::MakeVertices(), impeller::SolidRRectBlurContents::SetColor(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestatic |
|
inlinestaticconstexpr |
Definition at line 262 of file color.h.
Referenced by impeller::testing::CreatePassWithRectPath(), impeller::testing::TEST(), impeller::scene::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 772 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
| Color impeller::Color::SRGBToLinear | ( | ) | const |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
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::AtlasContents::GenerateSubAtlas(), impeller::testing::TEST(), and impeller::testing::toColor().
|
inlinestaticconstexpr |
|
inlineconstexpr |
Convert to R8G8B8A8 representation.
Definition at line 246 of file color.h.
References alpha, blue, green, and red.
Referenced by impeller::AppendColor(), and impeller::testing::TEST().
|
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 254 of file color.h.
Referenced by impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::scene::CuboidGeometry::GetVertexBuffer(), impeller::scene::PhysicallyBasedMaterial::MakeFromFlatbuffer(), impeller::SolidRRectBlurContents::Render(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 258 of file color.h.
Referenced by impeller::testing::TEST_P().
Definition at line 268 of file color.h.
References blue, green, and red.
Referenced by impeller::testing::BlendModeTest(), impeller::Canvas::DrawVertices(), impeller::TextContents::GetColor(), impeller::SolidColorContents::GetColor(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 832 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 141 of file color.h.
Referenced by ApplyColorMatrix(), Blend(), impeller::OpacityPeepholePassDelegate::CanCollapseIntoParentPass(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::PaintPassDelegate::CreateContentsForSubpassTarget(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), impeller::Canvas::DrawAtlas(), impeller::Canvas::DrawImageRect(), impeller::DlDispatcher::drawShadow(), impeller::Canvas::DrawVertices(), impeller::EncodeCommandsInReactor(), impeller::ColorHSB::FromRGB(), impeller::TextContents::GetColor(), impeller::SolidColorContents::GetColor(), IsOpaque(), IsTransparent(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::scene::importer::ToFBColor(), ToIColor(), 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 136 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DlDispatcher::drawShadow(), impeller::EncodeCommandsInReactor(), impeller::ColorHSB::FromRGB(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), SRGBToLinear(), impeller::scene::importer::ToFBColor(), ToIColor(), 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 131 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DlDispatcher::drawShadow(), impeller::EncodeCommandsInReactor(), impeller::ColorHSB::FromRGB(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), SRGBToLinear(), impeller::scene::importer::ToFBColor(), ToIColor(), 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 126 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), ColorNear(), impeller::ColorToString(), impeller::DoColorBlendComponents(), impeller::DlDispatcher::drawShadow(), impeller::EncodeCommandsInReactor(), impeller::ColorHSB::FromRGB(), LinearToSRGB(), impeller::Min(), operator*(), operator+(), operator-(), impeller::operator-(), operator/(), impeller::operator/(), std::operator<<(), operator==(), Premultiply(), SRGBToLinear(), impeller::scene::importer::ToFBColor(), ToIColor(), impeller::ToMTLClearColor(), ToR8G8B8A8(), impeller::ToRGB(), impeller::ToVector(), Unpremultiply(), impeller::VKClearValueFromColor(), and WithAlpha().