xxxxxxxxxx
float l = 13;
float h = 8;
float a = 17.16645;
void setup() {
size(2000, 2000);
background(255);
}
void draw() {
translate(width/2+3*l/2, height/2+a);
first(0);
noLoop();
}
void first(float y) {
float x = y;
for (int i = 0; i < 3; i++) {
activator(x);
pushMatrix();
translate(3l, 0);
rotate(TWO_PI/3);
}
popMatrix();
}
void activator(float x) {
noFill();
line(0, 0, l, 0);
arc(3*l/2, 0, l, h, PI, TWO_PI, PIE);
line(2*l, 0, 3*l, 0);
}
/*void first(float x){
line(-19.5, 17.16645+x, -6.5, 17.16645+x);
arc(0,17.16645+h, 13, 8, PI, TWO_PI);
line(6.5, 17.16645, 19.5, 17.16645);
}
*/