';

  var metrics = ctx.measureText(label);
  var width = metrics.width;
  var height = metrics.height;
  ctx.fillStyle = color;

  var xPos = (canvas.width/2 - width)/2;

  if (alignment === 'left') { xPos = 16; }

  ctx.fillText(label, xPos, canvas.height/2 - (canvas.height/2 - fontSize +2) / 2);
}

//
// BUTTON SETUP
//

function createWave(elem) {
  var elementStyle = window.getComputedStyle(elem);
  var fgColor = elementStyle.color;

  var wave = {
    waveColor: fgColor,
    maxRadius: 0,
    isMouseD