From f8a3589bb9842ccf11a015be6fb26e50529ca040 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 15 May 2015 13:49:12 +0200 Subject: Prepare to switch --- marks.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'marks.go') diff --git a/marks.go b/marks.go index 916381e..2bbd2f1 100644 --- a/marks.go +++ b/marks.go @@ -1,5 +1,7 @@ package main +import "bufio" + /* Landscape Portrait +- H -+ +- W -+ |x1 3| |2 1x| @@ -30,16 +32,16 @@ package main +- */ -func (c Cutter) DrawMarks(offset, size Point, length int) { - c.Move(Point{600, 3800}) - c.Draw(Point{200, 3800}) - c.Draw(Point{200, 3400}) +func DrawMarks(c *bufio.Writer, offset, size Point, length int) { + Point{600, 3800}.Move(c) + Point{200, 3800}.Draw(c) + Point{200, 3400}.Draw(c) - c.Move(Point{200, 600}) - c.Draw(Point{200, 200}) - c.Draw(Point{600, 200}) + Point{200, 600}.Move(c) + Point{200, 200}.Draw(c) + Point{600, 200}.Draw(c) - c.Move(Point{4840, 200}) - c.Draw(Point{5240, 200}) - c.Draw(Point{5240, 600}) + Point{4840, 200}.Move(c) + Point{5240, 200}.Draw(c) + Point{5240, 600}.Draw(c) } -- cgit v1.2.3