0

I was looking for an algorithm to calculate the perceived brightness of colors (I was using the naïve simple mean). I found interesting answers here, but I ran into a problem: I'm dealing with RGBA colors. When A = 255, it's equivalent to RGB and that thread works perfectly. However, if we consider RGBA(255, 255, 255, 0), those formulas give me maximum brightness, but not even there's a color.

I would be thankful if anyone can point me any theory that I could rely to do this.

Héliton Martins
  • 1,143
  • 10
  • 25

0 Answers0