Question: Make this car move in processing with mouseX and mouseY def setup(): size(800,800) def draw(): background(150) #body of the car fill(29,128,157) rect(315,300,100,50)#315,300 rect(250-10,250+100,265,100) triangle(315,300,250-10,250+100,315,250+100) triangle(315+100,300,505,350,315+100,250+100)
Make this car move in processing with mouseX and mouseY
def setup(): size(800,800) def draw(): background(150) #body of the car fill(29,128,157) rect(315,300,100,50)#315,300 rect(250-10,250+100,265,100) triangle(315,300,250-10,250+100,315,250+100) triangle(315+100,300,505,350,315+100,250+100) #window fill(232,236,237) rect(310+10,300+10,65+25,10+28) #tires fill(0) ellipse(200+100,300+150,60,60) ellipse(200+250,300+150,60,60) #wheels fill(255) ellipse(200+100,300+150,30,30) ellipse(200+250,300+150,30,30)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
