aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cutter.go4
-rw-r--r--marks.go2
2 files changed, 5 insertions, 1 deletions
diff --git a/cutter.go b/cutter.go
index d9d07ea..a063143 100644
--- a/cutter.go
+++ b/cutter.go
@@ -10,6 +10,10 @@ type Point struct {
X, Y int
}
+func add(a, b Point) Point {
+ return Point{a.X + b.X, a.Y + b.Y}
+}
+
/*
A4 Cutting area
diff --git a/marks.go b/marks.go
index fd75b29..cd90baf 100644
--- a/marks.go
+++ b/marks.go
@@ -35,7 +35,7 @@ package main
+- -+
*/
-func (c Cutter) DrawMarks() (string, error) {
+func (c Cutter) DrawMarks(offset, size Point) (string, error) {
c.Move(Point{600, 3800})
c.Draw(Point{200, 3800})
c.Draw(Point{200, 3400})