.java files cannot use processing functions
in
Integration and Hardware
•
2 years ago
I want to make external .java files be able to use functions like ellipse, rect, and other functions which can work with the canvas.
The ellipse command throws an error. :(
public class hi
{
private static int p = 5;
public static int getP()
{
return p;
}
public static int addToP()
{
ellipse(40,40,40,40);
p++;
return p;
}
}
The ellipse command throws an error. :(
public class hi
{
private static int p = 5;
public static int getP()
{
return p;
}
public static int addToP()
{
ellipse(40,40,40,40);
p++;
return p;
}
}
1