adapt design to have text in second color
This commit is contained in:
2026-05-20 10:41:04 +02:00
parent 7ee5c48e98
commit 17f110f2bd
14 changed files with 261 additions and 140 deletions

View File

@@ -1,4 +1,5 @@
include <BOSL2/std.scad>
use <../Color.scad>
x = 28;
y = 29;
@@ -6,9 +7,18 @@ z = 28;
name = "Figure";
figureBox(x + 3, y + 3, z + 1.5, name);
makeColor("white") {
translate([ (x + 3) / 2, 1, 4 ]) rotate([ 90, 0, 0 ]) linear_extrude(height = 0.2) text(
name,
size = 4,
font = "Arial:style=Bold",
halign="center",
valign="center"
);
}
module figureBox(x, y, z, name) {
difference() {
makeColor("yellow") difference() {
cube([ x, y, z ], false);
translate([ 1.5, 1.5, 1.5 ]) cube([ x - 3, y - 3, z - 1 ], false);
@@ -63,7 +73,7 @@ module windowHelper(x, y, z, name) {
);
}
translate([ x, y + 0.6, 4 ]) rotate([ 90, 0, 0 ]) linear_extrude(height = 1.6) text(
translate([ x, y + 1, 4 ]) rotate([ 90, 0, 0 ]) linear_extrude(height = 1.2) text(
name,
size = 4,
font = "Arial:style=Bold",