Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_drawArc_b |
, |
|
|
256 |
, |
|
|
64 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_drawArc_b.cpp.
4 {
7 paint.setAntiAlias(
true);
9 paint.setStrokeWidth(4);
11 float intervals[] = { 5, 5 };
13 for (auto degrees : { 270, 360, 540, 720 } ) {
16 }
17}
18}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawArc(const SkRect &oval, SkScalar startAngle, SkScalar sweepAngle, bool useCenter, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
@ kStroke_Style
set to stroke geometry