17#define LIN_SEGMENTS 10
31 fDrawFillPath =
false;
33 fName =
"PathOverstroke";
45 fPathType = (fPathType + 1) % 4;
48 fClosePath = !fClosePath;
51 fDrawFillPath = !fDrawFillPath;
85 path.cubicTo(p3, p4, p2);
120 canvas->
clear(0xFFFFFFFF);
121 const float SCALE = 1;
154 p.setAntiAlias(
true);
156 p.setStrokeWidth(fStroke);
161 std::cerr <<
"path dumpHex" << std::endl;
177 std::cerr <<
"fillpath dumpHex" << std::endl;
183 std::cerr << std::endl;
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorGREEN
SkPath quadPath(SkPoint p1, SkPoint p2)
SkPath rectPath(SkPoint p1)
bool onChar(SkUnichar uni) override
void draw(SkCanvas *canvas) override
SkPath cubicPath(SkPoint p1, SkPoint p2)
SkPath linSemicirclePath(SkPoint p1, SkPoint p2)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke 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
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static constexpr SkPoint Make(float x, float y)
constexpr float y() const
constexpr float x() const
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)