/* Color.cpp provides the implementation of class Color operations
 * ...
 ********************************************************************/

#include "Color.h"                                     // class Color

// ------- Wavelength -------------------------------------------------

double Color::Wavelength() const
{
   switch (myColorValue)
   {
      case RED:
                   return 6.5E-7;
      case ORANGE:
                   return  6.0E-7;
      case YELLOW:
                   return 5.8E-7;
      case GREEN: 
                   return 5.2E-7;
      case BLUE:
                   return 4.7E-7;
      case INDIGO:
                   return 4.4E-7;
      case VIOLET:
                   return 4.1E-7;
   }
}

