There was an error while loading. Please reload this page.
void setup() { size(200, 200); noLoop(); } void draw() { line(10, 10, 190, 190); }
void setup() { size(200, 200); } float x = 0.0; void draw() { background(204); x = x + 0.1; if (x > width) { x = 0; } line(x, 0, x, height); } void mousePressed() { noLoop(); } void mouseReleased() { loop(); }
Para o Processind de continuamente executar o código em draw(). Caso loop() seja chamada, o código em draw() é executado continuamente.
draw()
loop()
noLoop() redraw() draw()
Nenhum
Web & Applicações