Due to an unexpected error, I can't show the code, still i will put the code to you to try it out
var mycar; function setup(){ createCanvas(windowWidth,windowHeight); } function draw(){ for(var i=0, i=25, i++); mycar[i] = new mycar(); } function mycar(){ beginShape(); vertex(20,100); vertex(40,50); vertex(100,50); vertex(120,75); vertex(150,85); vertex(160,100); endShape(CLOSE); ellipse(30,120,20,20); ellipse(110,120,20,20); }