PVector problem in android mode
in
Android Processing
•
4 months ago
I've created an example to illustrate my problem. The following code compiles and runs in Java mode.
- import processing.core.PVector;
- PVector location;
- void setup()
{
smooth();
size(800, 600); - location = new PVector(width/2, height/2);
}; - void draw()
{
background (255);
ellipse(location.x, location.y, 48, 48);
} - void mousePressed()
{
location.set(mouseX, mouseY);
}
But when I attempt to compile in Android mode, I get the following error. Could someone point out my error.
[javac] C:\Users\xxxx\AppData\Local\Temp\android8365053850908649132sketch\src\processing\test\test\Test.java:37: cannot find symbol
[javac] symbol : method set(int,int)
[javac] location: class processing.core.PVector
[javac] location.set(mouseX, mouseY);
[javac] symbol : method set(int,int)
[javac] location: class processing.core.PVector
[javac] location.set(mouseX, mouseY);
1