src/robocup/canvas.js
// draw an image given the center of the image
draw an image given the center of the image
draw an image given the center of the image
function drawCenteredImage(ctx, img, center, dimension) {
  ctx.drawImage(img,
    center.x-dimension.width/2,
    center.y-dimension.height/2,
    dimension.width,
    dimension.height);
}
function drawCenteredImage ( ctx , img , center , dimension ) { ctx . drawImage ( img , center . x - dimension . width / 2 , center . y - dimension . height / 2 , dimension . width , dimension . height ) ; }
draw an image given the center of the image
draw an image given the center of the image