aboutsummaryrefslogtreecommitdiff
path: root/pen.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 /pen.go
Initial import
Diffstat (limited to 'pen.go')
-rw-r--r--pen.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/pen.go b/pen.go
new file mode 100644
index 0000000..6bcc02b
--- /dev/null
+++ b/pen.go
@@ -0,0 +1,25 @@
+package main
+
+type Pen struct {
+ Speed int
+ Force int
+ Cap string
+}
+
+var pens = map[string]Pen{
+ "pen": Pen{
+ Speed: 10,
+ Force: 10,
+ Cap: "pen",
+ },
+ "thin": Pen{
+ Speed: 10,
+ Force: 2,
+ Cap: "blue",
+ },
+ "thick": Pen{
+ Speed: 10,
+ Force: 27,
+ Cap: "yellow",
+ },
+}