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 drawRotatedCenteredImage(ctx, img, angle, center, dimension) {
  const topLeft = {
    x: center.x-dimension.width/2,
    y: center.y-dimension.height/2,
  };
  drawRotatedImage(ctx,
    img,
    angle,
    topLeft,
    dimension);
}
function drawRotatedCenteredImage ( ctx , img , angle , center , dimension ) { const topLeft = { x : center . x - dimension . width / 2 , y : center . y - dimension . height / 2 , } ; drawRotatedImage ( ctx , img , angle , topLeft , dimension ) ; }
draw an image given the center of the image
draw an image given the center of the image