SkPath path; path.moveTo(10, 10); path.lineTo(50, 50);
SkPath path; path.moveTo(0, 0); path.lineTo(50, 100); path.lineTo(100, 0);In this example, a new path object is created and the starting point is set to (0, 0) using the moveTo() function. The lineTo() function is then called twice to create two line segments from (0, 0) to (50, 100) and then from (50, 100) to (100, 0), resulting in a triangle shape. Package library: Skia