From 50aafedab485a360a03c4763631448285d324125 Mon Sep 17 00:00:00 2001 From: llgcode Date: Mon, 8 Jan 2018 17:55:31 +0100 Subject: [PATCH] Good Practice: always use BeginPath --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()