From bdbe6c1ed14cab11c43e1712b21ce9098da96970 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Tue, 11 Jun 2019 07:02:12 +0100 Subject: [PATCH] Better nut colour fix. --- vitamins/nut.scad | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vitamins/nut.scad b/vitamins/nut.scad index bb6a539..4015047 100644 --- a/vitamins/nut.scad +++ b/vitamins/nut.scad @@ -26,6 +26,7 @@ include <../core.scad> use use use <../utils/rounded_cylinder.scad> +brass_colour = brass; function nut_size(type) = type[1]; //! Diameter of the corresponding screw function nut_radius(type) = type[2] / 2; //! Radius across the corners @@ -47,7 +48,7 @@ module nut(type, nyloc = false, brass = false, nylon = false) { //! Draw specifi if(exploded() && nyloc) cylinder(r = 0.2, h = 10); - color(brass ? "gold" : nylon ? grey30: grey70) translate_z((exploded() && nyloc) ? 10 : 0) { + color(brass ? brass_colour : nylon ? grey30: grey70) translate_z((exploded() && nyloc) ? 10 : 0) { linear_extrude(height = thickness) difference() { circle(outer_rad, $fn = 6);