66 {
68 paint.setAntiAlias(
true);
70 paint.setStrokeWidth(2);
71 paint.setColor(0xFF660000);
72
74
75 for (
SkScalar angle = 0; angle <= 45; angle += 45) {
76 for (int oHeight = 2; oHeight >= 1; --oHeight) {
83
89
90 }
91 }
92
93 paint.setStrokeWidth(5);
94 const SkColor purple = 0xFF800080;
95 const SkColor darkgreen = 0xFF008000;
97 const char* arcstrs[] = {
98 "M250,400 A120,80 0 0,0 250,500",
99 "M250,400 A120,80 0 1,1 250,500",
100 "M250,400 A120,80 0 1,0 250,500",
101 "M250,400 A120,80 0 0,1 250,500"
102 };
103 int cIndex = 0;
104 for (const char* arcstr : arcstrs) {
109 }
110
111
114 path.moveTo(100, 100)
117
118 path.moveTo(200, 100)
121}
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
@ kStroke_Style
set to stroke geometry
static bool FromSVGString(const char str[], SkPath *)
SkPathBuilder & arcTo(const SkRect &oval, SkScalar startAngleDeg, SkScalar sweepAngleDeg, bool forceMoveTo)
SkPathBuilder & moveTo(SkPoint pt)
@ kSmall_ArcSize
smaller of arc pair
@ kLarge_ArcSize
larger of arc pair
PODArray< SkColor > colors
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
SkScalar fLeft
smaller x-axis bounds
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
void offset(float dx, float dy)
constexpr float height() const
constexpr float right() const
constexpr float width() const
constexpr float bottom() const
SkScalar fTop
smaller y-axis bounds