You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
keyReleased()
Exemplos
// Clique na imagem para lhe dar foco// e pressione qualquer teclaint value =0;
voiddraw() {
fill(value);
rect(25, 25, 50, 50);
}
voidkeyReleased()
{
if(value ==0) {
value =255;
} else {
value =0;
}
}
Descrição
A função `keyReleased() ` é
chamada cada vez que uma tecla é pressionada. Como regra geral,
nada deve ser desenhado no escopo do bloco de keyReleased().