aboutsummaryrefslogtreecommitdiff
path: root/marks.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:49:12 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-15 13:49:12 +0200
commitf8a3589bb9842ccf11a015be6fb26e50529ca040 (patch)
tree47e383bfa5c2eb8725e3bd847668c0d1762c1704 /marks.go
parent45d4b0df550fe3e2d56e25bc84717c289a134259 (diff)
Prepare to switch
Diffstat (limited to 'marks.go')
-rw-r--r--marks.go22
1 files changed, 12 insertions, 10 deletions
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)
}