We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeab64e commit fc5acaeCopy full SHA for fc5acae
resources/rgbscripts/ballscolors.js
@@ -207,7 +207,7 @@ var testAlgo;
207
var yDirection = (Math.random() * 2) - 1; // and random directions
208
var xDirection = (Math.random() * 2) - 1;
209
algo.direction[i] = [yDirection, xDirection];
210
- algo.colour[i] = colorPalette.collection[algo.colorIndex[i]][1];
+ algo.colour[i] = colorPalette.collection[algo.colorIndex[i % algo.colorIndex.length]][1];
211
}
212
algo.initialized = true;
213
return;
0 commit comments