SkPath path; path.moveTo(0, 0); path.lineTo(50, 50); path.reset();
SkPath path; path.arcTo(50, 50, 100, 100, 0, 180, false); path.reset(); path.arcTo(50, 50, 100, 100, 0, -180, false);This example creates a path with a single arc segment that spans 180 degrees. The reset() method is then called to clear the path, and a new arc segment is added with the same position and dimensions but spans -180 degrees. Package library: Skia Graphics Library for C++ (skia).