function convertToIntegerColor (color) {
  return Math.floor(Math.min(Math.abs(color), 1) * 255);
}
Clamps a number to 0-1
Then converts that number to 0-255
@param {number} color number 0 - 1
@returns {number} color number 0 - 255