I'm creating a couple of custom palettes for nice color effects in my emulator. For now, a color filter that makes the image with shades of Red, Green and Blue only. Basically, (R+G+B)/3 is the brightness (yup, there's another formula with coefficients).
Example: to calculate a shade of Red, I have three ways...
a) new_red = (brightness + red) / 2 --> gives washed colors.
b) new_red = (brightness * red) >> 7 --> gives vivid colors, but usually darker shades.
c) new_red = (brightness * red * red) >> 15 --> gives more color balance.
Any other ideas?
Example: to calculate a shade of Red, I have three ways...
a) new_red = (brightness + red) / 2 --> gives washed colors.
b) new_red = (brightness * red) >> 7 --> gives vivid colors, but usually darker shades.
c) new_red = (brightness * red * red) >> 15 --> gives more color balance.
Any other ideas?