summaryrefslogtreecommitdiff
path: root/fpdf_test.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_test.go
parent5cb99b114890dc1ef96e06b70f26fe5cfae63db7 (diff)
Dashed lines: tutorial example and tip of hat to Claudio Felber
Diffstat (limited to 'fpdf_test.go')
-rw-r--r--fpdf_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/fpdf_test.go b/fpdf_test.go
index f8df0c3..bb69569 100644
--- a/fpdf_test.go
+++ b/fpdf_test.go
@@ -1415,8 +1415,10 @@ func ExampleFpdf_tutorial28() {
srcPrev = src
}
pdf.MultiCell(wd-margin-margin, ln, msgStr, "", "C", false)
- pdf.SetDrawColor(224, 224, 224)
+ pdf.SetDashPattern([]float64{0.8, 0.8}, 0)
+ pdf.SetDrawColor(160, 160, 160)
pdf.Polygon(srcList, "D")
+ pdf.SetDashPattern([]float64{}, 0)
pdf.SetDrawColor(64, 64, 128)
pdf.SetLineWidth(pdf.GetLineWidth() * 3)
pdf.Beziergon(curveList, "D")