1 #include <iostream>
2 #include <iomanip>
3 
4 #include "color/color.hpp"
5 
main(int argc,char * argv[])6 int main( int argc, char *argv[] )
7  {
8   ::color::rgb<double> a;
9 
10    a = ::color::constant::orange_t{};
11 
12   ::color::rgb<double> r;
13 
14   ::color::operation::gain( r , a, 0.2 );
15   std::cout<< " gain( r , orange, 0.2 ) = ";
16   std::cout << r[0] << ", " << r[1] << ", " << r[2] << std::endl;
17   std::cout << std::endl;
18 
19   ::color::operation::gain( r, 0.5 );
20   std::cout<< " gain( orange, 0.5 ) = ";
21   std::cout << r[0] << ", " << r[1] << ", " << r[2] << std::endl;
22   std::cout << std::endl;
23 
24   return EXIT_SUCCESS;
25  }
26