Go to the source code of this file.
◆ REG_FIDDLE_ANIMATED()
REG_FIDDLE_ANIMATED |
( |
shapes |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
5 |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file shapes.cpp.
4 {
7
10 paint.setAntiAlias(
true);
11 paint.setStrokeWidth(4);
12 paint.setColor(0xff4285F4);
13
16
20 paint.setColor(0xffDB4437);
22
23 paint.setColor(0xff0F9D58);
25
27 paint.setColor(0xffF4B400);
30}
31}
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawRRect(const SkRRect &rrect, const SkPaint &paint)
void drawRoundRect(const SkRect &rect, SkScalar rx, SkScalar ry, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)