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 10 // Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double 11 color::cmyk<float> c; 12 13 // initialize c before get. 14 c = color::constant::turquoise_t{}; 15 16 // Here is how to get cyan component. 17 auto cyan = color::get::cyan( c ); 18 19 // Now do whatever you wan to do 20 std::cout << cyan << std::endl; 21 22 return EXIT_SUCCESS; 23 } 24