0

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();
}
The Good Guy
  • 31
  • 1
  • 2
  • 11
  • well you draw over the circle with the picture of your race track and then never draw the circle again...you need to include the drawing of your circle in your draw function...as a matter of fact you see the circle for a split second before it is drawn over by your race track image – Logan Murphy Nov 18 '14 at 18:13
  • i updated the code as you can see above but the circle is still not coming – The Good Guy Nov 18 '14 at 18:16
  • oh nevermind i get what your saying, i got it. Thank you so much for helping me man appreciate it! – The Good Guy Nov 18 '14 at 18:17

1 Answers1

1

You need to move

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

To the end of the draw function

Logan Murphy
  • 6,120
  • 3
  • 24
  • 42