Colorize Connected Components in Complex Structures

Find and colorize connected components in a cellular automaton.

    
Running more steps of the cellular automaton: