Color Analysis of Flags 

Analyze the national flags available in CountryData to discover the popularity of colors in the flags.

Create a collage of all country flags.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
Out[2]=
In[3]:=
Click for copyable input
X

Compute dominant colors and their coverage in the collage, only looking at the foreground.

In[4]:=
Click for copyable input
X
Out[4]=

Flag color distribution.

In[5]:=
Click for copyable input
X
Out[5]=