function componentToHex (color) {
  var hex = color.toString(16);
  return hex.length === 1 ? '0' + hex : hex;
}
Converts a number 0-255 to hex
@param {number} color number 0 - 255
@returns {string} hex value of number bassed