7 float p = 0.5 * (1 - cos(6.28318548f *
frame));
12 paint.setAntiAlias(
true);
13 paint.setStrokeWidth(4);
14 paint.setColor(0xffFE938C);
22 paint.setColor(0xffE6B89C);
25 paint.setColor(0xff9CAFB7);
29 paint.setColor(0xff4281A4);
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
REG_FIDDLE_ANIMATED(shapes_with_motion, 256, 256, false, 5, 4)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)