Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Path_addPoly_2 |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Path_addPoly_2.cpp.
4 {
7 paint.setStrokeWidth(15);
9 for (bool close : { false, true } ) {
11 path.addPoly({{20, 20}, {70, 20}, {40, 90}}, close);
14 paint.setStyle(style);
17 }
19 }
20}
21}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
@ kStrokeAndFill_Style
sets to stroke and fill geometry
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path