Flutter Engine
The Flutter Engine
Functions
smallarc.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM (smallarc, canvas, 762, 762)
 

Function Documentation

◆ DEF_SIMPLE_GM()

DEF_SIMPLE_GM ( smallarc  ,
canvas  ,
762  ,
762   
)

Definition at line 17 of file smallarc.cpp.

17 {
18 SkPaint p;
19 p.setColor(SK_ColorRED);
20 p.setAntiAlias(true);
21 p.setStyle(SkPaint::kStroke_Style);
22 p.setStrokeWidth(120);
23
25 path.moveTo(75, 0);
26 path.cubicTo(33.5, 0, 0, 33.5, 0, 75);
27
28 canvas->translate(-400, -400);
29 canvas->scale(8, 8);
30 canvas->drawPath(path, p);
31}
constexpr SkColor SK_ColorRED
Definition: SkColor.h:126
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
Definition: SkPath.h:59
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