summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2023-11-12 01:06:25 -0500
committerXANTRONIX Development2023-11-12 01:06:25 -0500
commitdace90c21b45974c367a56014462e858e33c8616 (patch)
treeaa08cb4b1d0600f68a0b63a0f63bde8c3d030b7f
parentceb09681ec929780646d004934bfc3c680e17835 (diff)
downloadxantronix-z32-dace90c21b45974c367a56014462e858e33c8616.tar.gz
xantronix-z32-dace90c21b45974c367a56014462e858e33c8616.tar.bz2
xantronix-z32-dace90c21b45974c367a56014462e858e33c8616.zip
Add case colour
-rw-r--r--case/case.scad7
1 files changed, 7 insertions, 0 deletions
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);