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::LuvCH< 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::LuvCH<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 ::color::operation::_internal::invert< color_t::category_type >{}( c );
26 std::cout<< "; Inverted = ";
27 std::cout << c[0] << ", " << c[1] << ", " << c[2] << std::endl;
28
29 ::color::operation::_internal::invert< color_t::category_type >{}( r, c );
30 std::cout<< "; Inverted = ";
31 std::cout << c[0] << ", " << c[1] << ", " << c[2] << std::endl;
32
33 return EXIT_SUCCESS;
34 }
35