var colors = new Array( [169,96,238], [255,51,61], [151,255,255], [255,203,87], [255,105,180],); var step = 0; //color table indices for: // current color left // next