We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Here's what I got so far, I couldn't figure out what to do:
void draw() {
fill(0);
rect(39, 124, 255, 60);
fill(255, 0, 0);
rect(39+255+value, 124, 20, 60);
}
void mouseDragged() {
value = value - 1;
if (value > 255) {
value = 0;
}
}
Answers
@Sandyjakes --
Here are two relevant examples related to constraining the mouse within a region:
...and changing the output based on the mouse value:
could you please provide me with some cod, so I can further understand what you are saying?
Check this. Please refer to the reference for the different functions provided next.
Kf