aboutsummaryrefslogtreecommitdiff
path: root/testpattern.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-09-26 01:02:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-09-26 01:02:29 +0200
commit365c44d8d352650e47995760daeca985e8a7e064 (patch)
treec65710ed58bd3890ef70e3f7447c1cae209e99e2 /testpattern.go
parent06fe0f88b8cfb51ab7e58c3d6ef5c8c940963ed8 (diff)
wip
Diffstat (limited to 'testpattern.go')
-rw-r--r--testpattern.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/testpattern.go b/testpattern.go
index 27e7593..e9fb235 100644
--- a/testpattern.go
+++ b/testpattern.go
@@ -36,3 +36,18 @@ func TestPattern(c *bufio.Writer) {
}.Line(c)
Point{0, 0}.Move(c)
}
+
+func (r Robo) TestPattern() {
+ r.Factor(100, 100, 100)
+ r.Offset(Point{0, 0})
+ r.LowerLeft(Point{0, 0})
+ r.Move(Point{510, 637})
+ r.Bezier(Point{510, 637}, Point{439, 637}, Point{383, 580}, Point{383, 510})
+ r.Bezier(Point{383, 510}, Point{383, 439}, Point{439, 383}, Point{510, 383})
+ r.Bezier(Point{510, 383}, Point{580, 383}, Point{637, 439}, Point{637, 510})
+ r.Bezier(Point{637, 510}, Point{637, 580}, Point{580, 637}, Point{510, 637})
+ r.Line(Point{764, 764}, Point{256, 764}, Point{256, 256}, Point{764, 256}, Point{764, 764})
+ r.Line(Point{2, 510}, Point{1018, 510})
+ r.Line(Point{510, 1018}, Point{510, 2})
+ r.Move(Point{0, 0})
+}