Declare variables in Pgraphics
in
Programming Questions
•
1 year ago
Hi,
is there anyway to delcare a float variable which belongs to the Pgraphic
for example
PGraphics dA;
dA.float x = 30;
instead of
float x =30;
because when i insert x like this,
dA.text("abc",x,x);
the x refers to position of x inside the PGraphics and i want to get the value of x if it's in the PGraphics
1