30 {
31
32
34
37 paint.setAntiAlias(
true);
38 paint.setStrokeWidth(4);
39 paint.setColor(0xFFFE938C);
40
42
46 };
52
56 paint.setColor(0xFFE6B89C);
58
59 paint.setColor(0xFF9CAFB7);
61
63 paint.setColor(0xFF4281A4);
66 }
static const int points[]
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
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)
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)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
sk_sp< SkBlender > blender SkRect rect
PODArray< SkColor > colors
static constexpr SkPoint Make(float x, float y)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)