curriculum -> guide, prepend 0- to arduino-to-deck
[challenge-bot] / guide / translate.scm
diff --git a/guide/translate.scm b/guide/translate.scm
new file mode 100644 (file)
index 0000000..feaad89
--- /dev/null
@@ -0,0 +1,42 @@
+;; tldr; AGPLv3+
+;; copyright info at bottom
+(use-modules (skribilo source c))
+
+(document
+ :title [translate]
+ (chapter
+  :title (source :language c [translate(\[\]){square\;}])
+  :number #f
+  (p [here's the output of
+             ,(prog (source :language c [translate(\[0, 0\]){square()\;}]))])
+  (figure
+   :legend "translate([0, 0]){square();}"
+   (image :file "translate.png" :height 500))
+  (p [here's the output of
+             ,(prog (source :language c [translate(\[0, 1\]){square()\;}]))])
+  (figure
+   :legend "translate([0, 1]){square();}"
+   (image :file "translate01.png" :height 500))
+  (p [here's the output of
+             ,(prog (source :language c [translate(\[1, 0\]){square()\;}]))])
+  (figure
+   :legend "translate([1, 0]){square();}"
+   (image :file "translate10.png" :height 500))))
+
+;; Copyright 2016 daniel watson
+
+;; This file is part of challenge-bot.
+
+;; challenge-bot is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU Affero General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; challenge-bot is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU Affero General Public License for more details.
+
+;; You should have received a copy of the GNU Affero General Public
+;; License along with challenge-bot.  If not, see
+;; <http://www.gnu.org/licenses/>.