Call an object within PGraphics?
in
Programming Questions
•
2 years ago
Hello,
I am new to Processing and programming, so the question may seem strange, but...
Can I call object within PGraphics?
Basically I am trying to do this (the objects are created lower, but I figured there's little need in posting all the object values etc). So here is the code (now it won't work - pg.myEyelid.look is not recognized).
void draw() {
noStroke();
background(255);
pg.beginDraw();
pg.background(trackBlack);
pg.scale(0.5, 0.5);
pg.myEyelid.look(); //How can I call these objects within PGraphics?
pg.myEyelid.blink();
pg.endDraw();
loadPixels();
for (int g = 0; g<cols; g++) {
for (int j =0; j<rows; j++) {
int a = g*pscale;
int b = j*pscale;
color c = pg.pixels[g+j*pg.width];
fill(c);
noStroke();
rect(a,b,pscale,pscale);
}
}
updatePixels();
println(bezierRef);
}
class Eyelid {
etc...
}
1
