Complete the code
function start(){ var a = new Circle(100); a.setPosition(100,100); add(a); // add in the 2 squares |
function start(){ // draw the flat ground var ground = new Rectangle(400,20); ground.setPosition(0,450); add(ground); // add a simple tree var trunk = new Rectangle(20,200); trunk.setPosition(100,250); add(trunk); var branches = new Circle(75); branches.setPosition(110,210); add(branches); // add a second tree var trunk2 = new Rectangle(____,____); trunk2.setPosition(____,____); add(trunk2); var branches2 = new Circle(____); branches2.setPosition(____,____); add(branches2); } |