make sideways() transformation

Also make the keytop width changes less dramatic, by centering them around the center of the sides of the keycap. Now instead of choosing the front or back of the keycap and shrinking / expanding the back or front to fit, we shrink / expand both evenly. This actually cleans up the logic too! hooray.
This commit is contained in:
Bob 2020-05-01 12:57:56 -04:00
parent 8557d19b02
commit 2172278b72
5 changed files with 2762 additions and 184 deletions

View file

@ -18,6 +18,9 @@ module key_shape(size, delta, progress = 0) {
sculpted_square_shape(size, delta, progress);
} else if ($key_shape_type == "rounded_square") {
rounded_square_shape(size, delta, progress);
} else if ($key_shape_type == "flat_sided_square") {
// rounded_square_shape handles this
rounded_square_shape(size, delta, progress);
} else if ($key_shape_type == "square") {
square_shape(size, delta, progress);
} else if ($key_shape_type == "oblong") {