From cf79b796e59bbd8f45824ab164c751e753967f10 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 12 May 2015 20:03:55 +0200 Subject: Add custom lines --- cutter.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cutter.go') diff --git a/cutter.go b/cutter.go index 50f544c..4a5b2c1 100644 --- a/cutter.go +++ b/cutter.go @@ -174,7 +174,10 @@ const ( DashLongDot DashDoubleDot DashLongDoubleDot - Custom1 // 2 args ? --a-- b --a-- +) + +const ( + Custom1 LineStyle = iota + 100 // 2 args ? --a-- b --a-- Custom2 // 3 args ? --a-- b -c- b -c- b --a-- Custom3 // 3 args ? --a-- b -c- b --a-- ) @@ -183,6 +186,10 @@ func (c Cutter) LineType(n LineStyle) { c.Send("L", n) } +func (c Cutter) LineTypeCustom(down, up Unit) { + c.Send("L100,1", down, ",", up) +} + func (c Cutter) LineScale(n int) { c.Send("B", n) } -- cgit v1.2.3