 }, 500);
}


function drawRipple(canvas, x, y, radius, innerColor, outerColor, innerColorAlpha, outerColorAlpha) {
  var ctx = canvas.getContext('2d');
  if (outerColor) {
    ctx.fillStyle = outerColor;
    ctx.fillRect(0,0,canvas.width, canvas.height);
  }

  ctx.beginPath();
  ctx.arc(x, y, radius, 0, 2 * Math.PI, false);
  ctx.fillStyle = innerColor;
  ctx.fill();
}

function drawLabel(canvas, label, fontSize, color, alignment) {
  var ctx = canvas.getContext('2d');
  ctx.font= fontSize + 'px Helvetica