//this rotates the whole image class Jane2Boid extends Boid{ Jane2Boid(){ r = 5; } void render() { // rotate the boid to face to proper direction float theta = vel.heading2D() - radians(90); push(); translate(loc.x(), loc.y()); rotateZ(theta); PImage a; a = loadImage("octopus3.gif"); imageMode(CENTER); image(a, 0, 0); //fill(255,255,255); //ellipseMode(CENTER); //ellipse(0, 0, r,r); pop(); } }