aboutsummaryrefslogtreecommitdiff
path: root/testpattern.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-04-19 11:12:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-04-19 11:12:37 +0200
commitac2879d312f3cca787db0b14f27edf9359130cc3 (patch)
treebfabdc97ea37002bd19ce6d5ed329170e58b9993 /testpattern.go
Initial import
Diffstat (limited to 'testpattern.go')
-rw-r--r--testpattern.go27
1 files changed, 27 insertions, 0 deletions
diff --git a/testpattern.go b/testpattern.go
new file mode 100644
index 0000000..85d71c8
--- /dev/null
+++ b/testpattern.go
@@ -0,0 +1,27 @@
+package main
+
+func (c Cutter) TestPattern() {
+ c.Factor(100, 100, 100)
+ c.Offset(Origin)
+ c.WriteLowerLeft(Origin)
+
+ c.Move(Point{510, 637})
+ c.Bezier(1, Point{510, 637}, Point{439, 637},
+ Point{383, 580}, Point{383, 510})
+ c.Bezier(1, Point{383, 510}, Point{383, 439},
+ Point{439, 383}, Point{510, 383})
+ c.Bezier(1, Point{510, 383}, Point{580, 383},
+ Point{637, 439}, Point{637, 510})
+ c.Bezier(1, Point{637, 510}, Point{637, 580},
+ Point{580, 637}, Point{510, 637})
+ c.Move(Point{764, 764})
+ c.Draw(Point{256, 764})
+ c.Draw(Point{256, 256})
+ c.Draw(Point{764, 256})
+ c.Draw(Point{764, 764})
+ c.Move(Point{2, 510})
+ c.Draw(Point{1018, 510})
+ c.Move(Point{510, 1018})
+ c.Draw(Point{510, 2})
+ c.Move(Origin)
+}