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
mouseMoved()
Exemplos
// Mova o mouse através da imagem para// mudar seu valorint value =0;
voiddraw() {
fill(value);
rect(25, 25, 50, 50);
}
voidmouseMoved()
{
value = value +5;
if (value >255) {
value =0;
}
}
Descrição
A função mouseMoved() é chamada cada vez que o mouse move e que um botão não é pressionado.