diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-04 13:14:40 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-04 13:14:40 -0400 |
commit | f0690e7eabd6a1dc812923ce417ebdb7da490f14 (patch) | |
tree | 18d446216908d4bbddde478010c9052c6ad870ee /fpdf.go | |
parent | 5cb99b114890dc1ef96e06b70f26fe5cfae63db7 (diff) |
Dashed lines: tutorial example and tip of hat to Claudio Felber
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 { |