aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMirek Kratochvil <miroslav.kratochvil@uni.lu>2025-08-29 08:33:45 +0200
committerMirek Kratochvil <miroslav.kratochvil@uni.lu>2025-08-29 08:33:45 +0200
commitf346e51d87acc621ed2967793ce8e1e71f82dd78 (patch)
tree011fc230e9b3dbb6bc0e04f29cbec325ef3f3e3a
parentf2252f2d46251127df640239408224f120e208ea (diff)
downloadls47-f346e51d87acc621ed2967793ce8e1e71f82dd78.tar.gz
ls47-f346e51d87acc621ed2967793ce8e1e71f82dd78.tar.bz2
improve further
-rw-r--r--LS47.scad21
1 files changed, 10 insertions, 11 deletions
diff --git a/LS47.scad b/LS47.scad
index c97d45b..21e0fce 100644
--- a/LS47.scad
+++ b/LS47.scad
@@ -2,12 +2,9 @@
// No license, but send me a hello if you use this for some good purpose.
// -- Mirek Kratochvil <exa.exa@gmail.com>
-//TODO: round corners?
+font = "FiraMono";
-font = "Consolas"; //URW Bookman L looks nicely here as well
-font2 = "Droid Sans Mono";
-
-alphabet = "en";
+alphabet = "ru";
//inch-sized tiles look imperial.
tilesize=25.4;
@@ -22,11 +19,13 @@ corner=tileheight*2;
//accomodate for Ё
if (alphabet=="ru") {
- fontheight=fontheight*0.9;
+ fontheight=fontheight*0.9;
}
module arrow(n) {
- if (n>=1) for(i=[0:n-1]) translate([i-(n-1)/2,0,0]) polygon([[0.45,0],[0,0.7],[-0.45,0]]);
+ if (n>=1)
+ for(i=[0:n-1]) translate([i-(n-1)/2,0,0])
+ polygon([[0.45,0],[0,0.7],[-0.45,0]]);
}
//this produces one tile
@@ -49,7 +48,7 @@ module tilec(letter, x, y, c) {
color("white") {
translate([tilesize*(0.5-dx*0.13),tilesize*(0.275-dy*0.13),tileheight*.51])
linear_extrude (height=tileheight/2)
- text(letter, font=font, size=tilesize*.45,
+ text(letter, font=font, size=tilesize*.48,
halign="center", valign="baseline");
}
color("white")
@@ -81,13 +80,13 @@ module tiles(letters) {
if (alphabet=="en") {
// latin variant of tiles
tiles(
- ["□", "A", "B", "C", "D", "E", "F",
+ ["□", "A", "B", "C", "D", "E", "F",
"G", "H", "I", "J", "K", "L", "M",
"N", "O", "P", "Q", "R", "S", "T",
"U", "V", "W", "X", "Y", "Z", ".",
- "/", ":", "?", "!", "'", "(", ")",
+ ",", ":", "?", "!", "'", "(", ")",
"0", "1", "2", "3", "4", "5", "6",
- "7", "8", "9", ",", "-", "+", "*"]
+ "7", "8", "9", "+", "-", "*", "/"]
);
} else if (alphabet=="ru") {
// variant of tiles thanks to Stas Bushuev