Hi guys, got a question about using variables declared in an object in the main code. Say for example, is it possible to extract and use the same
lenX variable from my
Deflector class in the main code?
Deflector mouseDeflector; void setup(){ size(500,500); mouseDeflector = new Deflector(0.01); }
Hi guys, really new to processing and have a question. I have this sort of pac-man head reversing itself as soon as it reaches the width of the screen but I would also like it to rotate 180 degrees for the mouth to face the correct direction. I've tried the push and popMatrix() but it seems to not rotate it correctly?
boolean isOpening = true; boolean isLooping = true; boolean insideFrame = true; float mouthAngle = 0; float mouthChange = 0.025; int c = 255; int x = width/2; int y = 250;