Go to the source code of this file.
◆ REG_FIDDLE_ANIMATED()
REG_FIDDLE_ANIMATED |
( |
shapes_with_motion |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
5 |
, |
|
|
4 |
|
|
) |
| |
Definition at line 4 of file shapes_with_motion.cpp.
4 {
6
7 float p = 0.5 * (1 - cos(6.28318548f *
frame));
9
12 paint.setAntiAlias(
true);
13 paint.setStrokeWidth(4);
14 paint.setColor(0xffFE938C);
15
18
22 paint.setColor(0xffE6B89C);
24
25 paint.setColor(0xff9CAFB7);
27
29 paint.setColor(0xff4281A4);
32}
33}
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)