clarify comments

This commit is contained in:
Minecon724 2024-08-13 15:30:32 +02:00
parent bc47c7c685
commit f1ca83c973
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

25
main.c
View file

@ -6,28 +6,25 @@
#include "stb_image_write.h"
/*
0 - simple
balanced
1 - nomin
average of two largest channels, bias towards darker shades, use if unsure
2 - nomax
makes image brighter
3 - twist
results in a specific style. largest banding potential, reduce strength (2024 update I don't remember how I came up with that)
0 - balanced
1 - average of two largest channels, bias towards darker shades, use if unsure
2 - makes image brighter
3 - ??? (lots of banding so reduce strength)
*/
#define LUMINANCE_METHOD 1
/*
less is more (literally). Accepts decimals.
go below 1 = regret
negative causes b&w (although it does not colorize already b&w images)
0 crashes
1 is the minimum, going below 1 makes surprising effects
the higher value the less effect it has
so when I say "reduce strength" I mean "increase the value"
*/
#define VIBRANCE_STRENGTH 1.1
/*
this is to make things more natural but sometimes does the opposite so toggle if u get weird things (I have a fix in mind tho) (2024 update not anymore)
basically darkens too bright things and vice versa
if a pixel goes below 0% or above 100% basically subtract the difference
so -10% becomes 10% and 110% becomes 90%
this was supposed to fix clipping but messes up colors (I remember I had in mind a fix but I don't remember it)
uncomment to enable
*/
//#define BETTER_CLAMP