User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
isp:vibrancy [2019/06/04 22:04] – [Implementation overview (HSL color space)] Igor Yefmovisp:vibrancy [2019/06/04 22:04] – [Implementation overview (HSL color space)] Igor Yefmov
Line 93: Line 93:
 \] \]
 <code c++>double scale(int _s, double _vib){ // _s is in range [0..100]% <code c++>double scale(int _s, double _vib){ // _s is in range [0..100]%
-  return 1. + (100 - _s) / 100. * _vib;+  return 1. + (100 - _s) / 100. * (_vib - 1);
 }</code> }</code>
 Once the scale (boost) value is calculated - just apply it to the pixels: Once the scale (boost) value is calculated - just apply it to the pixels:

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information