SkPath path; path.moveTo(50, 50);
SkPath path; path.moveTo(50, 50); path.lineTo(100, 100);
SkPath path; path.moveTo(50, 50); path.lineTo(100, 50); path.lineTo(100, 100); path.lineTo(50, 100); path.close();In this example, the path is created by moving to (50, 50), then creating a series of line segments using lineTo(), and finally closing the path using the close() method. The SkPath class is part of the Skia Graphics Library, which is an open-source C++ graphics library developed by Google. It is used in various projects, including the Chrome browser, Flutter framework, and Android's 2D drawing engine.