summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-07-04 13:14:40 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-07-04 13:14:40 -0400
commitf0690e7eabd6a1dc812923ce417ebdb7da490f14 (patch)
tree18d446216908d4bbddde478010c9052c6ad870ee /fpdf.go
parent5cb99b114890dc1ef96e06b70f26fe5cfae63db7 (diff)
Dashed lines: tutorial example and tip of hat to Claudio Felber
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/fpdf.go b/fpdf.go
index b2872e6..e516931 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -788,10 +788,14 @@ func (f *Fpdf) SetLineCapStyle(styleStr string) {
}
}
-// SetDashPattern sets the dash pattern that is used to draw lines.
-// The dashArray elements are numbers that specify the lengths of alternating
-// dashes and gaps. The dash phase specifies the distance into the dash pattern
-// at which to start the dash. The dash pattern is retained from page to page.
+// SetDashPattern sets the dash pattern that is used to draw lines. The
+// dashArray elements are numbers, in units established in New(), that specify
+// the lengths of alternating dashes and gaps. The dash phase specifies the
+// distance into the dash pattern at which to start the dash. The dash pattern
+// is retained from page to page. Call this method with an empty array to
+// restore solid line drawing.
+//
+// See tutorial 28 for an example of this function.
func (f *Fpdf) SetDashPattern(dashArray []float64, dashPhase float64) {
scaled := make([]float64, len(dashArray))
for i, value := range dashArray {