1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/floor_stand/floor_stand_text.scad
2022-06-06 13:11:46 +08:00

33 lines
828 B
OpenSCAD

use <util/split_str.scad>
use <floor_stand.scad>
use <multi_line_text.scad>
text = "Coder at Work";
font = "Arial Black";
font_size = 6;
line_spacing = 10;
stand_width = 40;
stand_height = 80;
stand_thickness = 4;
stand_spacing = 0.5;
module words(text, font, font_size, height, thickness, line_spacing) {
half_th = thickness / 2;
color("black")
translate([0, -height / 1.8, thickness])
linear_extrude(half_th / 2) {
multi_line_text(
split_str(text, " "),
font = font,
size = font_size,
line_spacing = line_spacing,
valign = "center",
halign = "center"
);
}
}
floor_stand(stand_width, stand_height, stand_thickness, stand_spacing)
words(text, font, font_size, stand_height, stand_thickness, line_spacing);