genColorFromHex = ({ color }) => {
  if (!isHex(color)) return `1, 1, 1`;

  const { red, green, blue } = hexRgb(color);
  return `${(red / 255).toFixed(2)}, ${(green / 255).toFixed(2)}, ${(
    blue / 255
  ).toFixed(2)}`;
}
Converts a hex color to gl_FragColor format

@param {string} color A hex color