mirror of
https://github.com/flynx/colors.js.git
synced 2026-01-06 02:31:12 +00:00
[refactor] Fix code formatting
This commit is contained in:
parent
158d165ad6
commit
600c9718e4
@ -61,12 +61,12 @@ function sequencer(map) {
|
||||
}
|
||||
|
||||
var rainbowMap = (function () {
|
||||
var rainbowcolors = ['red','yellow','green','blue','magenta']; //RoY G BiV
|
||||
var rainbowColors = ['red','yellow','green','blue','magenta']; //RoY G BiV
|
||||
return function (letter, i, exploded) {
|
||||
if (letter == " ") {
|
||||
return letter;
|
||||
} else {
|
||||
return stylize(letter,rainbowcolors[i++ % rainbowcolors.length]);
|
||||
return stylize(letter, rainbowColors[i++ % rainbowColors.length]);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user