From dace90c21b45974c367a56014462e858e33c8616 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 12 Nov 2023 01:06:25 -0500 Subject: Add case colour --- case/case.scad | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'case') diff --git a/case/case.scad b/case/case.scad index f846a22..320b876 100644 --- a/case/case.scad +++ b/case/case.scad @@ -13,6 +13,8 @@ module keyboard_base_plate(pcb_width, pcb_height) { wall_height = 14.0; corner_radius = thickness / 2.0; + case_color = [0, 0, 0, 1.0]; + screw_holes = [ [ 4.8150, 85.7250], [ 47.4822, 85.7250], @@ -36,6 +38,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { ]; module round_corner(translation, rotation) { + color(case_color) translate(translation) rotate(rotation) rotate_extrude(angle=90) { @@ -47,6 +50,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { } module round_edge(translation, rotation, length) { + color(case_color) translate(translation) rotate(rotation) linear_extrude(length) @@ -57,12 +61,14 @@ module keyboard_base_plate(pcb_width, pcb_height) { } module side(translation, dimensions) { + color(case_color) translate(translation) linear_extrude(dimensions[2]) square([dimensions[0], dimensions[1]], false); } module wall_corner(translation, rotation, radius, length) { + color(case_color) translate(translation) rotate(rotation) linear_extrude(length) @@ -73,6 +79,7 @@ module keyboard_base_plate(pcb_width, pcb_height) { } module screw_post(translation, h, d1, d2) { + color(case_color) translate(translation) difference() { cylinder(h=h, r=d1/2.0); -- cgit v1.2.3