Flutter Engine
The Flutter Engine
Functions
Path_addPath_3.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Path_addPath_3, 256, 160, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Path_addPath_3  ,
256  ,
160  ,
false  ,
 
)

Definition at line 4 of file Path_addPath_3.cpp.

4 {
5void draw(SkCanvas* canvas) {
9 path.addOval({20, 20, 200, 120}, SkPathDirection::kCW, 1);
10 for (int i = 0; i < 6; i++) {
12 matrix.reset();
13 matrix.setPerspX(i / 400.f);
14 dest.addPath(path, matrix);
15 }
16 canvas->drawPath(dest, paint);
17}
18} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawPath(const SkPath &path, const SkPaint &paint)
Definition: SkCanvas.cpp:1747
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
Definition: SkPath.h:59
const Paint & paint
Definition: color_source.cc:38
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258
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
Definition: switches.h:57
dest
Definition: zip.py:79