Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawRect |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawRect.cpp.
4 {
6 SkPoint rectPts[] = { {64, 48}, {192, 160} };
8 paint.setAntiAlias(
true);
10 paint.setStrokeWidth(20);
17 rect.set(rectPts[0], rectPts[1]);
20 }
21}
22}
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