Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Multiply |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
5 |
|
|
) |
| |
Definition at line 5 of file Multiply.cpp.
5 {
14 SkPoint vert[] = { { 0, 0 }, { 0, 256 } };
18 canvas->
clipRect( { 30, 30, 226, 226 } );
20}
21}
@ kMultiply
r = s*(1-da) + d*(1-sa) + s*d
@ kDstATop
r = d*sa + s*(1-da)
constexpr SkColor SK_ColorTRANSPARENT
constexpr SkColor SK_ColorBLACK
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawPaint(const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)