chiark / gitweb /
lemon-stand: honour LEMONSTAND_COARSE
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 28 Jan 2016 00:45:06 +0000 (00:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 28 Jan 2016 00:45:06 +0000 (00:45 +0000)
lemon-stand.scad.pl

index b924c72..e2ed927 100755 (executable)
@@ -15,6 +15,11 @@ my $N = 180; # around ellipse
 my $M = 80; # around each circle
 my @channeldistprops = (0, 1/3, 2/3);
 
+my $NMdiv = $ENV{'LEMONSTAND_COARSE'} || 1;
+
+$M /= $NMdiv;
+$N /= $NMdiv;
+
 print <<END;
 // -*- C -*-
 // *** AUTOGENERATED - DO NOT EDIT ***