summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStani <spe.stani.be@gmail.com>2015-07-06 12:36:29 +0200
committerStani <spe.stani.be@gmail.com>2015-07-06 12:36:29 +0200
commit74622e58a96b143400c19c7ff408f084bcf78918 (patch)
treef49ca9b2cf670aca102ce31b003c553003a00295
parent56ecb2da47c9086aebdd4ea84a3e7dfa297fa07f (diff)
fix documentation string MoveTo
-rw-r--r--fpdf.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/fpdf.go b/fpdf.go
index 6c21210..41d8c25 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -3487,15 +3487,17 @@ func (f *Fpdf) enddoc() {
}
// Path Drawing
-//
-// Create a "path" by moving a virtual stylus around the page, then draw it or
-// fill it in. The main advantage of using the path drawing routines rather
-// than multiple Fpdf.Line is that PDF creates nice line joins at the angles,
-// rather than just overlaying the lines.
-// MoveTo moves the stylus to (x, y) without drawing the path from the previous
-// point. Paths must start with a MoveTo to set the original stylus location or
-// the result is undefined.
+// MoveTo moves the stylus to (x, y) without drawing the path from the
+// previous point. Paths must start with a MoveTo to set the original
+// stylus location or the result is undefined.
+//
+// Create a "path" by moving a virtual stylus around the page (with
+// MoveTo, LineTo, CurveTo, CurveBezierCubicTo, ArcTo & ClosePath)
+// then draw it or fill it in (with DrawPath). The main advantage of
+// using the path drawing routines rather than multiple Fpdf.Line is
+// that PDF creates nice line joins at the angles, rather than just
+// overlaying the lines.
//
// See tutorial 30 for an example of this function.
func (f *Fpdf) MoveTo(x, y float64) {