Search code examples
jquerygeometryjsbin

Circle Not showing up on canvas


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();
}

Solution

  • You need to move

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

    To the end of the draw function