class Ant { float x; float y; float antSize = 2; float antSpeed = 1; Ant() { }; void walkAround(){ //Move the ant x = x + random(-antSpeed,antSpeed); y = y + random (-antSpeed,antSpeed); //Draw the ant fill(random(0,180),random(0,200),random(0,32),150); noStroke(); rect(x,y,antSize,antSize); stroke(random(0,180),random(0,200),random(0,32),150); //line(x,y,250,250); }; };