SkPath path; path.moveTo(0,0); path.cubicTo(50,100,100,100,150,0);
float controlPts[] = {50,100, 100,100}; SkPoint pts[] = {SkPoint::Make(0,0), SkPoint::Make(150,0)}; path.cubicTo(controlPts, pts);This code uses arrays to define the control points and ending points of the cubic Bezier curve added to the path. Package library: The SkPath class is part of the Skia Graphics Engine library, commonly used for software applications that require image processing and rendering.