1 #ifndef color_generic_make_brown 2 #define color_generic_make_brown 3 4 // ::color::make::brown( c ) 5 6 // TODO #include "model.hpp" 7 #include "../constant/brown.hpp" 8 9 10 namespace color 11 { 12 namespace constant 13 { 14 15 template< typename category_name > 16 struct make< ::color::constant::brown_t, category_name > 17 { 18 typedef category_name category_type; 19 20 typedef ::color::model<category_type> model_type; 21 typedef ::color::rgb<std::uint8_t> rgb_type; 22 typedef ::color::constant::brown_t constant_type; 23 24 typedef typename ::color::trait::container<category_type>::output_type container_output_type; 25 26 processcolor::constant::make27 inline static void process( container_output_type & container ) 28 { 29 static model_type s_model{ rgb_type{ 0xA5, 0x2A, 0x2A } }; 30 container = s_model.container(); 31 } 32 }; 33 34 } 35 } 36 37 #endif 38