Moved color generation out of ElGraph