chiark / gitweb /
quacks-ingredients: multicolour gap
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 16:15:23 +0000 (16:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Feb 2020 16:15:23 +0000 (16:15 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
quacks-ingredients.scad

index e54aa1f884190dc414aaf82859d64ab03bc59a67..f8024e35ec67864576dc021757398e4af187bc71 100644 (file)
@@ -37,7 +37,8 @@ module SpotAt(condition, xy) {
   if (condition == !$spots_absent) {
     echo(condition, $spots_absent, "Y");
     translate(xy * (spot_gap + spot_dia) * sqrt(0.5))
-      circle(r= spot_dia/2);
+      circle(r= spot_dia/2 +
+            ($spots_plusgap ? multicolour_gap : 0));
   } else {
     echo(condition, $spots_absent, "N");
   }