Colorize Connected Components in Complex Structures

Find and colorize connected components in a cellular automaton.

    
In[1]:=
Click for copyable input
Out[1]=
Running more steps of the cellular automaton:
In[2]:=
Click for copyable input
Out[2]=