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   //!< Instead of std::uint8_t    you may put: std::uint16_t, std::uint32_t, std::uint64_t, float, double, long double
9   typedef ::color::cmyk< std::uint8_t > color_t;
10   color_t r, c;
11 
12   c = ::color::constant::orange_t{}; //!< Fill with some useful information
13 
14   std::cout<< "Orange in ::color::cmyk<std::uint8_t> = ";
15   std::cout << c[0] << ", " << c[1] << ", " << c[2] << std::endl;
16 
17   ::color::operation::invert( c );
18   std::cout<< ";  Inverted = ";
19   std::cout << c[0] << ", " << c[1] << ", " << c[2] << std::endl;
20 
21   ::color::operation::invert( r, c );
22   std::cout<< ";  Inverted = ";
23   std::cout << c[0] << ", " << c[1] << ", " << c[2] << std::endl;
24 
25   return EXIT_SUCCESS;
26  }
27