-
Notifications
You must be signed in to change notification settings - Fork 21
Operations
Dejan edited this page Sep 7, 2016
·
2 revisions
::color::rgb<double> a{ ::color::constant::orange{} };
::color::rgb<double> b{ ::color::constant::gold{} };
::color::rgb<double> r;
// equivalent to r = 0.6*a + (1-0.6)*b, but faster
::color::operation::convex( r, a, 0.6 , b );
// equivalent to r = 0.2*a + 0.4*b, but faster
::color::operation::combine( r, 0.2, a, 0.4 , b );
// inversion
::color::operation::invert( r, b );
// gamma correction
::color::operation::gamma( r, a, 2.0 );