void setup() { size(300, 300); textFont(createFont("Arial", 15)); } void draw() { // Exibe os pontos stroke(128); fill(frameCount % 256); rect((frameCount % (width/10)) * 10, (frameCount / (width/10)) * 10, 10, 10); // Exibe os dados fill(255); rect(0, width-100, width, 100); fill(0); text("(frameCount % (width /10)) * 10 = " + (frameCount % (width /10)) * 10 , 0, height - 80); text("(frameCount / (width /10)) * 10 = " + (frameCount / (width /10)) * 10, 0, height - 60); text("frameCount % width = " + (frameCount % width), 0, height - 40); text("frameCount / width = " + (frameCount / width), 0, height - 20); }