10 paint.setAntiAlias(
true);
11 paint.setStrokeWidth(4);
12 paint.setColor(0xff4285F4);
20 paint.setColor(0xffDB4437);
23 paint.setColor(0xff0F9D58);
27 paint.setColor(0xffF4B400);
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
REG_FIDDLE_ANIMATED(shapes, 256, 256, false, 5, 0)
sk_sp< SkBlender > blender SkRect rect
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)