add translate 00 10 01
authordaniel watson <ozzloy@gmail.com>
Thu, 12 May 2016 21:53:05 +0000 (14:53 -0700)
committerdaniel watson <ozzloy@gmail.com>
Sat, 11 Jun 2016 05:00:23 +0000 (22:00 -0700)
curriculum/makefile
curriculum/translate.scad [new file with mode: 0644]
curriculum/translate.scm [new file with mode: 0644]
curriculum/translate01.scad [new file with mode: 0644]
curriculum/translate10.scad [new file with mode: 0644]

index 022055e6e0acf3fe5b5f88eedd9a1de25914b5e6..3c708a3afa7508106bc2609191d0f086d73c916c 100644 (file)
@@ -33,5 +33,36 @@ square3.png: square3.scad makefile
 square.html: square.scm square.png square1.png square2.png square3.png makefile
        @skribilo square.scm > square.html
 
+translate.png: translate.scad makefile
+       @openscad \
+         --render \
+         -o translate.png \
+          --camera=1.27,1.57,0.01,0,0,0,9.05 \
+         --imgsize=931,634 \
+         translate.scad
+
+translate01.png: translate01.scad makefile
+       @openscad \
+         --render \
+         -o translate01.png \
+          --camera=1.27,1.57,0.01,0,0,0,9.05 \
+         --imgsize=931,634 \
+         translate01.scad
+
+translate10.png: translate10.scad makefile
+       @openscad \
+         --render \
+         -o translate10.png \
+          --camera=1.27,1.57,0.01,0,0,0,9.05 \
+         --imgsize=931,634 \
+         translate10.scad
+
+translate.html: translate.scm \
+               translate.png \
+               translate10.png \
+               translate01.png \
+               makefile
+       @skribilo translate.scm > translate.html
+
 clean:
        @rm -f square.png square.html
diff --git a/curriculum/translate.scad b/curriculum/translate.scad
new file mode 100644 (file)
index 0000000..40e5bc0
--- /dev/null
@@ -0,0 +1,23 @@
+// tldr; AGPLv3+
+// copyright info at bottom
+
+translate([]){square();}
+
+/*
+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/>.
+*/
diff --git a/curriculum/translate.scm b/curriculum/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/>.
diff --git a/curriculum/translate01.scad b/curriculum/translate01.scad
new file mode 100644 (file)
index 0000000..15a198e
--- /dev/null
@@ -0,0 +1,23 @@
+// tldr; AGPLv3+
+// copyright info at bottom
+
+translate([0, 1]){square();}
+
+/*
+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/>.
+*/
diff --git a/curriculum/translate10.scad b/curriculum/translate10.scad
new file mode 100644 (file)
index 0000000..e78e4e2
--- /dev/null
@@ -0,0 +1,23 @@
+// tldr; AGPLv3+
+// copyright info at bottom
+
+translate([1, 0]){square();}
+
+/*
+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/>.
+*/