The icons on the Unity launcher are square and contain the icon image and have a coloured background. The icons have different colours as their backgrounds (see screenshot). How does Unity decide what colour this should be?
1 Answer
Looks like it's using the average (RGB) of the colors of the icon.
Take a look at the upstream code for details.
-
-
Well, the average of one white pixel and one black pixel is 50% neutral grey (127, 127, 127). ;-) And transparent pixels seem to count as black.– htorqueNov 12, 2010 at 7:16