PFont font = createFont ("Courier", 18);
String [] str = new String[7];
int zeichnungsCounter = 0;
String comment = " // i ist " + counter + ", Bedingung ist " + (counter < 10 ? true : false);
boolean falseLoop = false;
textFont (font, fontSize);
rect (0, 0, height, height);
while (j < 10 && j < zeichnungsCounter)
ellipse(100, height/2, d, d);
for (int i = 0; i < str.length; i++) {
rect (height+15, fontSize*2 +i*fontSize*1.3+5, width, -fontSize-5);
text (str[i], height+20, fontSize*2 +i*fontSize*1.3);
text (comment, height+20 + textWidth(str[i]), fontSize*2 +i*fontSize*1.3);
if (i == 4 && activeID >= 4)
String opertion = " // i = " + (counter-1) + " + 1, i ist jetzt " + (counter);
text (opertion, height+20 + textWidth(str[i]), fontSize*2 +i*fontSize*1.3);
if (doLoop) autoupdate();
if ((frameCount % speed) == 0) {
if (activeID == 3) zeichnungsCounter++;
if (activeID > 5 && counter < 10)
comment = " // i ist " + counter + ", Bedingung ist " + (counter < 10 ? true : false);
} else if (!falseLoop && activeID > 5 && counter >= 10) {
comment = " // i ist " + counter + ", Bedingung ist " + (counter < 10 ? true : false);
comment = " // i ist " + counter + ", Bedingung ist " + (counter < 10 ? true : false);
str [1] = "while(i < 10) {";
str [2] = " float d = 10 + i * 15;";
str [3] = " ellipse(width/2, height/2, d, d);";
str [6] = "// Mit Schleife fertig, Weiterer Code wird ausgefuehrt";
if (key == '+' && !doLoop) {