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