26         "three levels linear",
 
   27         "three levels linear narrow",
 
   56         double h=factor * 255;
 
   59         switch( scale_type ) {
 
   70                         if ( 60 < h && h <= 120 ) {
 
   78                         if ( 120 < h && h <= 180 ) {
 
   87                                 f = ((h /60.0) - 3)/1.25;
 
   96                                 col->
r = 255 * factor;
 
  100                                 col->
r = 255 * factor;
 
  101                                 col->
g = (255 * (factor - 0.5)) * 1.8;
 
  107                         col->
g = 255 * factor;
 
  108                         col->
b = 255 * factor;
 
  111                         col->
r = 255 * (1-factor);
 
  112                         col->
g = 255 * (1-factor);
 
  113                         col->
b = 255 * (1-factor);
 
  120                         if( factor < 0.3333 ) {
 
  122                         } 
else if( 0.6666 < factor ) {
 
  135                         if( factor < 0.3333 ) {
 
  138                                 col->
b = 255 * (1-(factor*3));
 
  139                         } 
else if( 0.6666 < factor ) {
 
  142                                 col->
r = 255 * (( factor - 0.6666 ) * 3);
 
  154                         if( factor < 0.4705 ) {
 
  157                                 col->
b = 255 * (1-(factor*2.125));
 
  158                         } 
else if( 0.5294 < factor ) {
 
  161                                 col->
r = 255 * (( factor - 0.5294 ) * 2.125);
 
Color_Scale_t Color_Scale_from_name(char *name)
 
static void factor_to_color(struct Color *col, double factor, Color_Scale_t scale_type)
factor_to_color 
 
Color structure containing RGB values. 
 
static const char *const Color_Scale_names[SCALE_COUNT]