//Drop point for breeding new trees from fruit class Hopper{ float x, y, knuckleHeight, orientation; Hopper(float x, float y, float orientation){ this.x = x; this.y = y; knuckleHeight = height - (height / 4); this.orientation = orientation * 15; } void draw(){ strokeWeight(1); stroke(150); fill(150); beginShape(QUADS); vertex(x - 20, y); vertex(x + 20, y); vertex(x + 5 + orientation, knuckleHeight); vertex(x - 5 + orientation, knuckleHeight); vertex(x - 5 + orientation, knuckleHeight); vertex(x + 5 + orientation, knuckleHeight); vertex(x + 5 + orientation, height); vertex(x - 5 + orientation, height); endShape(); fill(200); stroke(200); ellipse(x, y, 70, 70); ellipse(x + orientation, knuckleHeight, 20, 20); strokeWeight(3); stroke(100); fill(0); ellipse(x, y, 50, 50); } }