summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
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 {