|
|
|
# Keyboard key
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
```
|
|
|
|
default height = 1.0
|
|
|
|
default width = 4.0
|
|
|
|
default depress = 0.1
|
|
|
|
default top_coeff = 0.9
|
|
|
|
|
|
|
|
let depression = {height * depress}
|
|
|
|
let top_width = {width * top_coeff}
|
|
|
|
let depress_r = {(4*depression**2 + top_width**2)/(8*depression)}
|
|
|
|
let dx = {(width - top_width)/2.0}
|
|
|
|
|
|
|
|
M {-width/2.0},0
|
|
|
|
l dx, height
|
|
|
|
a depress_r, depress_r 0 0 1
|
|
|
|
top_width,0
|
|
|
|
l dx, -height
|
|
|
|
```
|
|
|
|
|
|
|
|
https://gist.github.com/portnov/3f98a018c5391304fca46457932fcdeb
|
|
|
|
|
|
# Petal
|
|
# Petal
|
|
|
|
|
|

|
|

|
... | | ... | |