aboutsummaryrefslogtreecommitdiff
path: root/misc.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-04 23:19:46 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-04 23:19:46 +0200
commit91d3472be75004b6e937cd57ad27a8a6f6872b09 (patch)
tree1c331bbc67feabc754cee1e21b084f55de6647b4 /misc.go
parent957ef9104e09477186bd39faa35f21ec3485e937 (diff)
More functions
Diffstat (limited to 'misc.go')
-rw-r--r--misc.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc.go b/misc.go
index 6ea5aa9..5934211 100644
--- a/misc.go
+++ b/misc.go
@@ -1,5 +1,7 @@
package main
+import "log"
+
func (c Cutter) DrawAtom() {
base := Point{2000, 2000}
for i := 0; i < 3; i++ {
@@ -26,3 +28,18 @@ func (c Cutter) DrawCircles() {
Polar{100 * float64(i), 3600})
}
}
+
+func (c Cutter) DrawPic() {
+ for _, path := range parsePage() {
+ c.Move(path[0])
+ for _, p := range path[1:] {
+ c.Draw(p)
+ }
+ }
+}
+
+func (c Cutter) MustMarks(p Point) {
+ if !c.SearchMarks(p, 400) {
+ log.Fatal("marks not found")
+ }
+}