6 SkPoint rectPts[] = { {64, 48}, {192, 160} };
8 paint.setAntiAlias(
true);
10 paint.setStrokeWidth(20);
17 rect.set(rectPts[0], rectPts[1]);
REG_FIDDLE(Canvas_drawRect, 256, 256, false, 0)
constexpr SkColor SK_ColorYELLOW
constexpr SkColor SK_ColorMAGENTA
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void mapPoints(SkPoint dst[], const SkPoint src[], int count) const
SkMatrix & setRotate(SkScalar degrees, SkScalar px, SkScalar py)
@ kStroke_Style
set to stroke geometry
sk_sp< SkBlender > blender SkRect rect