text: /**
   * This file was automatically created with "create_c++_header.sh".
   * Do not edit manually.
   */
  #pragma once
  #include "../../colormap.h"
  
  namespace colormap
  {
  namespace IDL
  {
  
  class CBYIGn : public Colormap
  {
  private:
  	class Wrapper : public WrapperBase
  	{
  	public:
  		#ifdef float
  			#error "TODO"
  		#endif
  		#define float local_real_t
  		#include "../../../../shaders/glsl/IDL_CB-YIGn.frag"
  		#undef float
  	};
  
  public:
  	Color getColor(double x) const override
  	{
  		Wrapper w;
  		vec4 c = w.colormap(x);
  		Color result;
  		result.r = std::max(0.0, std::min(1.0, c.r));
  		result.g = std::max(0.0, std::min(1.0, c.g));
  		result.b = std::max(0.0, std::min(1.0, c.b));
  		result.a = std::max(0.0, std::min(1.0, c.a));
  		return result;
  	}
  
  	std::string getTitle() const override
  	{
  		return std::string("CB-YIGn");
  	}
  
  	std::string getCategory() const override
  	{
  		return std::string("IDL");
  	}
  
  	std::string getSource() const override
  	{
  		return std::string(
  			"float colormap_red(float x) {\n"
  			"	if (x < 0.6289940178394318) {\n"
  			"		return ((5.11696133375750E+02 * x - 8.41303218634799E+02) * x + 2.59644604131609E+01) * x + 2.53419788769069E+02;\n"
  			"	} else {\n"
  			"		return (-1.59266359984140E+02 * x - 2.05336652594121E+01) * x + 1.40166356828632E+02;\n"
  			"	}\n"
  			"}\n"
  			"\n"
  			"float colormap_green(float x) {\n"
  			"	if (x < 0.7657577693462372) {\n"
  			"		return ((1.07839212106774E+00 * x - 1.91222692546201E+02) * x - 1.99072424271726E+01) * x + 2.55781815734834E+02;\n"
  			"	} else {\n"
  			"		return (-2.23913463560442E+02 * x + 1.41364491447333E+02) * x + 1.51940340657207E+02;\n"
  			"	}\n"
  			"}\n"
  			"\n"
  			"float colormap_blue(float x) {\n"
  			"	if (x < 0.1102530658245087) {\n"
  			"		return (-1.06015269490890E+01 * x - 3.53323657599336E+02) * x + 2.28818914956011E+02;\n"
  			"	} else if (x < 0.7528357207775116) {\n"
  			"		return (((6.02578715483658E+02 * x - 1.15715802822919E+03) * x + 7.15916939803876E+02) * x - 3.43088208134950E+02) * x + 2.19476164232866E+02;\n"
  			"	} else {\n"
  			"		return (-6.54502605847083E+01 * x + 1.22002989630042E+01) * x + 9.46764726107154E+01;\n"
  			"	}\n"
  			"}\n"
  			"\n"
  			"vec4 colormap(float x) {\n"
  			"	float r = clamp(colormap_red(x) / 255.0, 0.0, 1.0);\n"
  			"	float g = clamp(colormap_green(x) / 255.0, 0.0, 1.0);\n"
  			"	float b = clamp(colormap_blue(x) / 255.0, 0.0, 1.0);\n"
  			"	return vec4(r, g, b, 1.0);\n"
  			"}\n"
  		);
  	}
  };
  
  } // namespace IDL
  } // namespace colormap
  