We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Please explain me these cases:
boolean ready_for_thick_line = false;
void mousePressed() {
drawLine(10);
ready_for_thick_line = true;
redraw();
}
void drawLine(int width) {
strokeWeight(width);
line(20, 20, 80, 20);
}
void draw() {
if (ready_for_thick_line)
{
loop();
}
else{
drawLine(1);
noLoop();
}
}