We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
void setup() { size(200, 200); noLoop(); } float x = 0; void draw() { background(204); x = x + .1; if (x > width) { x = 0; } line(x, 0, x, height); } void mousePressed() { loop(); } void mouseReleased() { noLoop(); }
determina que Processing irá execurar o código em draw() continuamente. Caso noLoop() seja chamada, o código em draw() parará de executar.
draw()
noLoop()
loop() redraw() draw()
Nenhum
Web & Applicações