Want more features on Pastebin? Sign Up, it's FREE!
Guest

Simulating GDI+ gamma correction in QT

By: a guest on Mar 30th, 2012  |  syntax: None  |  size: 0.15 KB  |  views: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. current_color = start_color * (1 - current_point_value) + end_color * current_point_value;
  2.        
  3. gamma_corrected_color_value = color_value ^ (1 / gamma);
clone this paste RAW Paste Data