function drawPlay(x, y){
  var base_image = new Image();
  base_image.src = './play.png';
  base_image.onload = function(){
  infocontext.drawImage(base_image, x, y, 40, 40);
  }
}
/*------------------------------------
      Draw the play & pause button.
--------------------------------------*/
Draw the play & pause button.
Draw the play & pause button .
function drawPlay(x, y){
  var base_image = new Image();
  base_image.src = './play.png';
  base_image.onload = function(){
  infocontext.drawImage(base_image, x, y, 40, 40);
  }
}
function drawPlay ( x , y ) { var base_image = new Image ( ) ; base_image . src = './play.png' ; base_image . onload = function ( ) { infocontext . drawImage ( base_image , x , y , 40 , 40 ) ; } }
Draw the play & pause button.
Draw the play & pause button .