Root/labsw/mech/front.fpd

Source at commit 1d4b89ec4f453cbdfdff8667b16b634fe0be251f created 8 years 3 months ago.
By Werner Almesberger, labsw/mech/font.fpd: increased banana jack hole from 6 mm to 8 mm
1/* MACHINE-GENERATED ! */
2
3frame logo {
4    set head_width = 7*unit-width
5
6    set head_step = 2*unit
7
8    set leg = 6*unit-width
9
10    set foot = 2*unit-width
11
12    set unit = 0.8mm
13
14    set width = unit
15
16    __0: vec @(head_width, 0mm)
17    line @ . width
18    __1: vec .(0mm, -head_step)
19    __2: vec .(0mm, -head_step)
20    __3: vec .(0mm, -leg)
21    line __2 . width
22    __4: vec .(foot, 0mm)
23    line __3 . width
24    __5: vec @(0mm, -head_step)
25    line . __1 width
26    __6: vec .(0mm, -head_step)
27    line . __2 width
28}
29
30frame rect {
31    __0: vec @(w/2, h/2)
32    __1: vec @(-w/2, -h/2)
33    rect . __0 width
34}
35
36frame circle {
37    __0: vec @(0mm, r)
38    circ @ . width
39}
40
41frame buttons {
42    set h = but_h
43
44    set w = but_w
45
46    table
47        { x, y }
48        { 27mm, -8mm }
49        { 27mm, 8mm }
50        { 42mm, -8mm }
51
52    __0: vec @(x, y)
53    frame rect .
54}
55
56frame LEDs {
57    set r = led/2
58
59    table
60        { x, y }
61        { 14mm, -8mm }
62        { 14mm, 8mm }
63        { 42mm, 4.8mm }
64
65    __0: vec @(x, y)
66    frame circle .
67}
68
69frame jacks {
70    table
71        { x }
72        { -42mm }
73        { -28mm }
74        { -14mm }
75        { 1mm }
76
77    table
78        { y }
79        { -8mm }
80        { 8mm }
81
82    set r = jack/2
83
84    __0: vec @(x, y)
85    frame circle .
86}
87
88frame outline {
89    __0: vec @(w/2, h/2)
90    __1: vec @(-w/2, -h/2)
91    rect . __0 width
92}
93
94package "front-$type"
95unit mm
96
97set width = 5mil
98
99table
100    { type, h, w, jack, led, but_h, but_w }
101    { "cut", 35mm, 104mm, 8mm, 6.9mm, 11.3mm, 12.6mm }
102    { "panel", 33mm, 100mm, 11mm, 7.6mm, 14mm, 14mm }
103
104table
105    { logo_x, logo_y }
106    { 43mm, 14mm }
107
108__0: vec @(logo_x, logo_y)
109frame logo .
110frame outline @
111frame jacks @
112frame LEDs @
113frame buttons @
114

Archive Download this file

Branches:
master



interactive