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

Go to the source code of this file.

Functions

 REG_FIDDLE (Paint_057, 462, 256, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Paint_057  ,
462  ,
256  ,
false  ,
 
)

Definition at line 4 of file Paint_057.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 path.moveTo(10, 50);
8 path.quadTo(35, 110, 60, 210);
9 path.quadTo(105, 110, 130, 10);
10 SkPaint paint; // set to default kMiter_Join
11 paint.setAntiAlias(true);
13 paint.setStrokeWidth(20);
14 canvas->drawPath(path, paint);
15 canvas->translate(150, 0);
16 paint.setStrokeJoin(SkPaint::kBevel_Join);
17 canvas->drawPath(path, paint);
18 canvas->translate(150, 0);
19 paint.setStrokeJoin(SkPaint::kRound_Join);
20 canvas->drawPath(path, paint);
21}
22} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void translate(SkScalar dx, SkScalar dy)
Definition: SkCanvas.cpp:1278
void drawPath(const SkPath &path, const SkPaint &paint)
Definition: SkCanvas.cpp:1747
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
@ kRound_Join
adds circle
Definition: SkPaint.h:360
@ kBevel_Join
connects outside edges
Definition: SkPaint.h:361
Definition: SkPath.h:59
const Paint & paint
Definition: color_source.cc:38
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