void dibujamodos (int position) { drawface (); for (int cont = 0; cont < 12; cont++) { int queso = (position+cont) % 12; String a = modo_str[modo_int][cont]; String b = ""; if (a.length()>15) { b = a.substring (15); a = a.substring (0, 15); } if (a != "") { for (int index = 0; index<11; index++){ String c = modo_str[modo_int][(cont+1+index)%12]; if (c != "") {layer.input[index]=1;} else {layer.input[index]=0;} } layer.update(); color cl = color (50+layer.node[1].output*layer.node[3].output*255, 50+layer.node[2].output*layer.node[3].output*222, 50+layer.node[0].output*layer.node[3].output*233); stroke (cl); // color del queso fill(cl); arc (xmed, ymed, radio, radio, -(queso+1)*pija+.016, -queso*pija-.016); float offset; if (b == "") {offset = .17;} else {offset = .28;} float x1 = sin((queso + 3) * pija + offset); float y1 = cos((queso + 3) * pija + offset); float x2 = sin((queso + 3) * pija + .065); float y2 = cos((queso + 3) * pija + .065); fill (#000000); // color 2 10 texto (a, xmed + 70 * x1, ymed-8 + 75 * y1, -queso*30.0-15); texto (b, xmed + 92 * x2, ymed-8 + 95 * y2, -queso*30.0-15); } } }