Color
adapt design to have text in second color
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user