Circle Not showing up on canvas

455 views Asked by At

There is supposed to be a circle on my canvas along with my car and background.

My code is on jsbin:

http://jsbin.com/hagavoyuwu/3/edit

Code for circle that is not working is:

function drawcircle(){
context.beginPath();
context.arc(100,75,50,0,2*Math.PI);
context.stroke();
}
1

There are 1 answers

0
Logan Murphy On BEST ANSWER

You need to move

context.beginPath();
context.arc(100,75,50,0,2*Math.PI);
context.stroke();

To the end of the draw function