SkPath path; path.moveTo(10, 10); // Move to starting point path.quadTo(50, 10, 50, 50); // Add quadratic bezier curve
// Calculate points for quadratic bezier curve SkPoint controlPoint = SkPoint::Make(25, 75); SkPoint endPoint = SkPoint::Make(75, 75); // Add curve to existing path SkPath path = ...; // Existing path path.quadTo(controlPoint, endPoint);This code calculates the control and endpoint for a quadratic bezier curve, then adds the curve to an existing path. Overall, SkPath is part of the Skia Graphics Library.