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
mouseDragged()
Exemplos
// Arraste (pressione e mantenha pressionado) seu mouse através// da imagem para mudar o valor do retânguloint value =0;
voiddraw() {
fill(value);
rect(25, 25, 50, 50);
}
voidmouseDragged()
{
value = value +5;
if (value >255) {
value =0;
}
}
Descrição
Chamada cada vez que o mouse move e que um botão do mouse é pressionando.