Main
Named Fiddles
Skia Fiddle
Skia Version:
3d1a3b
void draw(SkCanvas* canvas) { SkPath path; path.conicTo(1, 2, 3, 4, .5f); SkPath::RawIter iter(path); SkPoint p[4]; SkDebugf("first verb is " "%s" "move\n", SkPath::kMove_Verb == iter.next(p) ? "" : "not "); SkDebugf("next verb is " "%s" "conic\n", SkPath::kConic_Verb == iter.next(p) ? "" : "not "); SkDebugf("conic points: {%g,%g}, {%g,%g}, {%g,%g}\n", p[0].fX, p[0].fY, p[1].fX, p[1].fY, p[2].fX, p[2].fY); SkDebugf("conic weight: %g\n", iter.conicWeight()); }
Skia API Documentation