captbaritone / webamp

Winamp 2 reimplemented for the browser
https://webamp.org
MIT License
10.01k stars 662 forks source link

correction gamma colors #1155

Closed x2nie closed 2 years ago

x2nie commented 2 years ago

current webamp gamma color calculation resulting a too bright / too dark picture. we found that int c = -((1-(required/source))*4096); [1] in which similar to required_color = ((source * c) + (source*4096)) / 4096; Visually, it generating a very similar appearance to winamp modern skin.

comparing-the-3 [1] /Plugins/freeform/wacs/coloreditor/xml/ce_extend.m

captbaritone commented 2 years ago

This is awesome! Thanks for your contribution!