SHARE
TWEET

Simulating GDI+ gamma correction in QT

a guest Mar 30th, 2012 25 Never
  1. current_color = start_color * (1 - current_point_value) + end_color * current_point_value;
  2.        
  3. gamma_corrected_color_value = color_value ^ (1 / gamma);
RAW Paste Data
Top