-
Notifications
You must be signed in to change notification settings - Fork 0
/
letterplot.pde
41 lines (40 loc) · 1.39 KB
/
letterplot.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
void plotletterAmbig (char letterAmbig){
switch(letterAmbig) {
case 'E':
plotter.write("UC4,0,99,-4,0;");
println("Now plotting to complete letter " + letterAmbig);
break;
case 'O':
plotter.write("UC4,6,99,0,-4");
println("Now plotting to complete letter " + letterAmbig);
break;
case 'R':
plotter.write("UC3,3.5,99,0.5,-0.2,0.3,-0.3,0.2,-0.5,0,-2.5");
println("Now plotting to complete letter " + letterAmbig);
break;
case '?':
plotLabel("?");
println("Now plotting to complete sign " + letterAmbig);
break;
case '!':
plotLabel("!");
println("Now plotting to complete sign " + letterAmbig);
break;
case 'T':
plotter.write("UC0,8,99,4,0");
println("Now plotting to complete letter " + letterAmbig);
break;
case 'U':
plotter.write("UC0,3,99,0,5");
println("Now plotting to complete letter " + letterAmbig);
break;
case 'B':
plotter.write("UC3,8,99,0.5,-0.2,0.3,-0.3,0.2,-0.5,0,-1.5,-0.2,-0.5,-0.3,-0.3,-0.5,-0.2,0.5,-0.2,0.3,-0.3,0.2,-0.5,0,-2.5,-0.2,-0.5,-0.3,-0.3,-0.5,-0.2,");
println("Now plotting to complete letter " + letterAmbig);
break;
case 'Q':
plotter.write("UC3,3,99,-3,-1");
println("Now plotting to complete letter " + letterAmbig);
break;
}
}