You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
/*
|
|
* Copyright 2022 Thomas Buck - thomas@xythobuz.de
|
|
* Philipp Schönberger - mail@phschoen.de
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* See <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
// 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
|
|
|
|
include <extern/KeyV2/includes.scad>
|
|
|
|
|
|
// example key
|
|
|
|
flat_support() no_stem_support() rounded_cherry() sa_row(3) key();
|
|
// example row
|
|
/* for (x = [0:1:4]) {
|
|
translate_u(0,-x) dcs_row(x) key();
|
|
} */
|
|
|
|
// example layout
|
|
/* preonic_default("dcs") key(); */
|