different pmouse/pmotion behavior.
in
Android Processing
•
2 years ago
Just a quick question. Not sure if this is a bug or if i just missed some changes in the syntax.
While writing a tutorial I realized there is a different update behavior of pmouse/pmotion on android and on processing.
running this code on processing and the emulator shows the difference
on the android device the lines connect even when starting to drag at a different point. to be honest that seems to be more logical to me, but the behavior on processing was more useful for example when building such a quick drawing app.
While writing a tutorial I realized there is a different update behavior of pmouse/pmotion on android and on processing.
running this code on processing and the emulator shows the difference
- void setup() {
size(300,300); // remove size on android sketch
background(255);
}
void draw(){}
void mouseDragged() {
strokeWeight(2);
stroke(0);
line(mouseX,mouseY,pmouseX,pmouseY);
}
on the android device the lines connect even when starting to drag at a different point. to be honest that seems to be more logical to me, but the behavior on processing was more useful for example when building such a quick drawing app.
2