From f0690e7eabd6a1dc812923ce417ebdb7da490f14 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sat, 4 Jul 2015 13:14:40 -0400 Subject: Dashed lines: tutorial example and tip of hat to Claudio Felber --- fpdf_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fpdf_test.go') 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") -- cgit v1.2.1-24-ge1ad