Main
Named Fiddles
Skia Fiddle
Skia Version:
3d1a3b
void draw(SkCanvas* canvas) { auto debugster = [](const char* prefix, const SkPath& path) -> void { SkDebugf("%s point count: %d\n", prefix, path.countPoints()); }; SkPath path; debugster("empty", path); path.lineTo(0, 0); debugster("zero line", path); path.rewind(); path.moveTo(10, 10); path.lineTo(20, 20); debugster("line", path); path.moveTo(20, 20); debugster("second move", path); }
Skia API Documentation