chiark / gitweb /
quacks-ingredients: frame further away
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Mar 2020 14:17:42 +0000 (14:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Mar 2020 14:17:42 +0000 (14:17 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
quacks-ingredients-counts
quacks-ingredients-counts.scad

index 8ab88227e48193b763d67b3a190bcd30ea06cb56..7d4d8d863540c672f7bfb4400cef72000e397de4 100755 (executable)
@@ -39,7 +39,7 @@ sub wrtoplevel () {
        my $c = $cs->{$nspots};
        print <<END;
   union(){
-    Frame(\$phase, token_pitch * [ $rowsz + 1.00, $nrows ]);
+    Frame(\$phase, token_pitch * [ $rowsz + 1.00, $nrows + 0.50 ]);
     \$nspots = $nspots;
 END
        while ($c--) {
index 8aaeeb6e07cba962073d4d11f91db980dc792838..80eec2fd10e1007c88758fa26a379678d5030d6d 100644 (file)
@@ -4,7 +4,7 @@
 module Black(){ ////toplevel
 // total=18, rowsz=5, nrows=4
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.0,  -1.5 ]) Token_L();
     translate(token_pitch * [  -2.0,  -0.5 ]) Token_L();
@@ -26,22 +26,22 @@ module Black(){ ////toplevel
     translate(token_pitch * [   2.0,  -0.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 2;
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 4;
   };
 }
 module Blue(){ ////toplevel
 // total=34, rowsz=6, nrows=6
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.5,  -2.5 ]) Token_L();
     translate(token_pitch * [  -2.5,  -1.5 ]) Token_L();
@@ -59,7 +59,7 @@ module Blue(){ ////toplevel
     translate(token_pitch * [  -0.5,  -1.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 2;
     translate(token_pitch * [  -0.5,  -0.5 ]) Token_L();
     translate(token_pitch * [  -0.5,   0.5 ]) Token_L();
@@ -73,11 +73,11 @@ module Blue(){ ////toplevel
     translate(token_pitch * [   0.5,   2.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 4;
     translate(token_pitch * [   1.5,  -2.5 ]) Token_L();
     translate(token_pitch * [   1.5,  -1.5 ]) Token_L();
@@ -94,7 +94,7 @@ module Blue(){ ////toplevel
 module Green(){ ////toplevel
 // total=38, rowsz=7, nrows=6
   union(){
-    Frame($phase, token_pitch * [ 7 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 7 + 1.00, 6 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -3.0,  -2.5 ]) Token_L();
     translate(token_pitch * [  -3.0,  -1.5 ]) Token_L();
@@ -113,7 +113,7 @@ module Green(){ ////toplevel
     translate(token_pitch * [  -1.0,  -0.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 7 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 7 + 1.00, 6 + 0.50 ]);
     $nspots = 2;
     translate(token_pitch * [  -1.0,   0.5 ]) Token_L();
     translate(token_pitch * [  -1.0,   1.5 ]) Token_L();
@@ -127,11 +127,11 @@ module Green(){ ////toplevel
     translate(token_pitch * [   1.0,  -2.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 7 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 7 + 1.00, 6 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 7 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 7 + 1.00, 6 + 0.50 ]);
     $nspots = 4;
     translate(token_pitch * [   1.0,  -1.5 ]) Token_L();
     translate(token_pitch * [   1.0,  -0.5 ]) Token_L();
@@ -151,7 +151,7 @@ module Green(){ ////toplevel
 module Orange(){ ////toplevel
 // total=20, rowsz=5, nrows=4
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.0,  -1.5 ]) Token_L();
     translate(token_pitch * [  -2.0,  -0.5 ]) Token_L();
@@ -175,22 +175,22 @@ module Orange(){ ////toplevel
     translate(token_pitch * [   2.0,   1.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 2;
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 5 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 5 + 1.00, 4 + 0.50 ]);
     $nspots = 4;
   };
 }
 module Purple(){ ////toplevel
 // total=15, rowsz=4, nrows=4
   union(){
-    Frame($phase, token_pitch * [ 4 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 4 + 1.00, 4 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -1.5,  -1.5 ]) Token_L();
     translate(token_pitch * [  -1.5,  -0.5 ]) Token_L();
@@ -209,22 +209,22 @@ module Purple(){ ////toplevel
     translate(token_pitch * [   1.5,   0.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 4 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 4 + 1.00, 4 + 0.50 ]);
     $nspots = 2;
   };
   union(){
-    Frame($phase, token_pitch * [ 4 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 4 + 1.00, 4 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 4 + 1.00, 4 ]);
+    Frame($phase, token_pitch * [ 4 + 1.00, 4 + 0.50 ]);
     $nspots = 4;
   };
 }
 module Red(){ ////toplevel
 // total=30, rowsz=6, nrows=5
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.5,  -2.0 ]) Token_L();
     translate(token_pitch * [  -2.5,  -1.0 ]) Token_L();
@@ -240,7 +240,7 @@ module Red(){ ////toplevel
     translate(token_pitch * [  -0.5,  -1.0 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 2;
     translate(token_pitch * [  -0.5,   0.0 ]) Token_L();
     translate(token_pitch * [  -0.5,   1.0 ]) Token_L();
@@ -252,11 +252,11 @@ module Red(){ ////toplevel
     translate(token_pitch * [   0.5,   2.0 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 4;
     translate(token_pitch * [   1.5,  -2.0 ]) Token_L();
     translate(token_pitch * [   1.5,  -1.0 ]) Token_L();
@@ -273,7 +273,7 @@ module Red(){ ////toplevel
 module White(){ ////toplevel
 // total=32, rowsz=6, nrows=6
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.5,  -2.5 ]) Token_L();
     translate(token_pitch * [  -2.5,  -1.5 ]) Token_L();
@@ -297,7 +297,7 @@ module White(){ ////toplevel
     translate(token_pitch * [   0.5,  -1.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 2;
     translate(token_pitch * [   0.5,  -0.5 ]) Token_L();
     translate(token_pitch * [   0.5,   0.5 ]) Token_L();
@@ -309,7 +309,7 @@ module White(){ ////toplevel
     translate(token_pitch * [   1.5,   0.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 3;
     translate(token_pitch * [   1.5,   1.5 ]) Token_L();
     translate(token_pitch * [   1.5,   2.5 ]) Token_L();
@@ -317,14 +317,14 @@ module White(){ ////toplevel
     translate(token_pitch * [   2.5,  -1.5 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 6 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 6 + 0.50 ]);
     $nspots = 4;
   };
 }
 module Yellow(){ ////toplevel
 // total=29, rowsz=6, nrows=5
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 1;
     translate(token_pitch * [  -2.5,  -2.0 ]) Token_L();
     translate(token_pitch * [  -2.5,  -1.0 ]) Token_L();
@@ -341,7 +341,7 @@ module Yellow(){ ////toplevel
     translate(token_pitch * [  -0.5,   0.0 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 2;
     translate(token_pitch * [  -0.5,   1.0 ]) Token_L();
     translate(token_pitch * [  -0.5,   2.0 ]) Token_L();
@@ -351,11 +351,11 @@ module Yellow(){ ////toplevel
     translate(token_pitch * [   0.5,   1.0 ]) Token_L();
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 3;
   };
   union(){
-    Frame($phase, token_pitch * [ 6 + 1.00, 5 ]);
+    Frame($phase, token_pitch * [ 6 + 1.00, 5 + 0.50 ]);
     $nspots = 4;
     translate(token_pitch * [   0.5,   2.0 ]) Token_L();
     translate(token_pitch * [   1.5,  -2.0 ]) Token_L();