KeyV2/keys.scad

21 lines
680 B
OpenSCAD
Raw Normal View History

// the point of this file is to be a sort of DSL for constructing keycaps.
// when you create a method chain you are just changing the parameters
// key.scad uses, it doesn't generate anything itself until the end. This
// lets it remain easy to use key.scad like before (except without key profiles)
// without having to rely on this file. Unfortunately that means setting tons of
// special variables, but that's a limitation of SCAD we have to work around
2020-02-23 13:11:33 +11:00
include <./includes.scad>
// example key
2022-10-15 09:11:12 +11:00
dcs_row(5) legend("⇪", size=9) key();
2022-10-15 09:11:12 +11:00
// example row
/* for (x = [0:1:4]) {
translate_u(0,-x) dcs_row(x) key();
} */
// example layout
2022-01-12 06:43:41 +11:00
/* preonic_default("dcs") key(); */