1 #include <iostream> 2 #include <iomanip> 3 #include <cstdint> 4 5 #include "color/color.hpp" 6 main(int argc,char * argv[])7int main( int argc, char *argv[] ) 8 { 9 // Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double 10 color::gray<float> c; 11 12 // initialize c before get. Actually this is gray version of turquoise 13 c = color::constant::turquoise_t{}; 14 15 // Here is how to get white component or what is left. Cause thi is gray. 16 auto white = color::get::white( c ); 17 18 // Now do whatever you wan to do 19 std::cout << white << std::endl; 20 21 return EXIT_SUCCESS; 22 } 23