#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. | |
| uint32_t | ToARGB () const |
| Convert to ARGB 32 bit color. | |
| 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. | |
| Color | ApplyColorMatrix (const ColorMatrix &color_matrix) const |
| A color filter that transforms colors through a 4x5 color matrix. | |
| Color | LinearToSRGB () const |
| Convert the color from linear space to sRGB space. | |
| Color | SRGBToLinear () const |
| Convert the color from sRGB space to linear space. | |
| 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. | |
| static constexpr 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. | |
| 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 |
Friends | |
| template<typename H > | |
| H | AbslHashValue (H h, const Color &c) |
|
inlineconstexpr |
Definition at line 145 of file color.h.
Referenced by ApplyColorMatrix(), Clamp01(), LinearToSRGB(), MakeRGBA8(), and SRGBToLinear().
|
explicit |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 291 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 299 of file color.cc.
References alpha, impeller::ColorMatrix::array, blue, c, Color(), green, and red.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
Definition at line 295 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 303 of file color.h.
Referenced by impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 307 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 271 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 275 of file color.h.
Referenced by Blend(), impeller::ContentContext::ContentContext(), impeller::Paint::CreateContents(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::Canvas::SaveLayer(), impeller::testing::TEST(), impeller::testing::TEST(), 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 155 of file color.cc.
References alpha, BlackTransparent(), impeller::ComponentChoose(), d, 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(), and Unpremultiply().
Referenced by impeller::testing::BlendModeTest(), impeller::GetCPUColorFilterProc(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 281 of file color.h.
Referenced by impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Definition at line 343 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 347 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 355 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 |
Definition at line 423 of file color.h.
Referenced by MakeRenderTargetFromBackingStoreImpeller(), MakeRenderTargetFromBackingStoreImpeller(), impeller::SurfaceGLES::WrapFBO(), impeller::SurfaceVK::WrapSwapchainImage(), and impeller::WrapTextureWithRenderTarget().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 439 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 471 of file color.h.
Referenced by impeller::interop::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 279 of file color.h.
Referenced by impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 899 of file color.h.
References alpha.
Referenced by impeller::SolidColorContents::IsOpaque().
|
inlineconstexpr |
Definition at line 897 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.
Referenced by impeller::CreateGradientBuffer(), impeller::testing::TEST(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 607 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| Color impeller::Color::LinearToSRGB | ( | ) | const |
Convert the color from linear space to sRGB space.
The color is assumed to be unpremultiplied. If the color is premultipled, the conversion output will be incorrect.
Definition at line 309 of file color.cc.
References alpha, blue, Color(), green, and red.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 152 of file color.h.
References Color().
Referenced by impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 651 of file color.h.
Referenced by impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 663 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, c, green, red, and impeller::ScalarNearlyEqual().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 699 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::ShadowVerticesContents::Render(), impeller::SolidColorContents::Render(), impeller::TextContents::Render(), impeller::SolidRRectLikeBlurContents::SetColor(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestatic |
Definition at line 855 of file color.h.
Referenced by impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 277 of file color.h.
Referenced by impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), 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 |
Convert the color from sRGB space to linear space.
The color is assumed to be unpremultiplied. If the color is premultipled, the conversion output will be incorrect.
Definition at line 320 of file color.cc.
References alpha, blue, Color(), green, and red.
Referenced by impeller::testing::TEST().
|
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::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), 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, 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 Blend(), impeller::DoColorBlend(), impeller::DoColorBlendComponents(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 269 of file color.h.
Referenced by impeller::testing::BlendModeTest(), impeller::SolidRRectLikeBlurContents::Render(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 273 of file color.h.
Referenced by impeller::testing::TEST_P().
Definition at line 283 of file color.h.
References blue, green, and red.
Referenced by impeller::testing::BlendModeTest(), impeller::FirstPassDispatcher::drawText(), impeller::Canvas::DrawVertices(), impeller::SolidColorContents::GetColor(), impeller::TextContents::GetColor(), impeller::CircleContents::Render(), impeller::UberSDFContents::Render(), impeller::TextContents::SetTextProperties(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
|
inlinestaticconstexpr |
Definition at line 847 of file color.h.
Referenced by impeller::testing::TEST().
|
inlinestaticconstexpr |
|
friend |
| 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::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(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator/(), operator/(), operator==(), Premultiply(), impeller::CircleContents::Render(), impeller::UberSDFContents::Render(), impeller::Canvas::SaveLayer(), impeller::android::SurfaceTransaction::SetBackgroundColor(), SRGBToLinear(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), 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::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator/(), 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::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator/(), 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::DoColorBlendComponents(), impeller::DrawPlaygroundLine(), impeller::DrawPlaygroundPoint(), impeller::DlDispatcherBase::drawShadow(), impeller::EncodeCommandsInReactor(), LinearToSRGB(), operator*(), operator*(), operator+(), operator+(), operator-(), operator-(), operator/(), 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().