diff --git a/README.md b/README.md index d2e408b..6213f60 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,8 @@ func main() { gc.SetLineWidth(5) // Draw a closed shape - gc.MoveTo(10, 10) // should always be called first for a new path + gc.BeginPath() // Initialize a new path + gc.MoveTo(10, 10) // Move to a position to start the new path gc.LineTo(100, 50) gc.QuadCurveTo(100, 10, 10, 10) gc.Close()