OpenApoc / OpenApoc

Opensource rebuild of the XCOM Apocalypse Engine that requires the original files to run.
http://openapoc.org
GNU General Public License v3.0
513 stars 99 forks source link

Need a way to render colorized images #198

Open Istrebitel opened 7 years ago

Istrebitel commented 7 years ago

For stunned vehicles we must color vehicle white, meaning tinting isn't going to help as that can only subtract color, not add it.

JonnyH commented 6 years ago

So you want something that does:

if (not transparent) pixel_colour = VALUE;

or

if (not transparent) pixel_colour += VALUE; ?

JonnyH commented 6 years ago

So you want something that does:

if (not transparent) pixel_colour = VALUE;

or

if (not transparent) pixel_colour += VALUE; ?

Istrebitel commented 6 years ago

Well, do you remember what vanilla did? When hit with stun, ship became kinda white-y. We need that.

In terms of color I think that is a blend, meaning you take the original color, white color, sum them and divide by 2 (or sum them, multiplied by 1-alpha and alpha respectively of the provided color, which controls how much of it is applied)

Artytoo commented 11 months ago

For personal testing if you want to use "Lunapic" on a screenshot, you could use gamma alterations to the graphics.

it seems to be the same function as the "day night" colouring in cache.

Lunapic: Adjust, Adjust light levels.