Loops moved to color.js