mirror of
https://github.com/flynx/colors.js.git
synced 2026-07-13 17:11:00 +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 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) {
|
return function (letter, i, exploded) {
|
||||||
if (letter == " ") {
|
if (letter == " ") {
|
||||||
return letter;
|
return letter;
|
||||||
} else {
|
} else {
|
||||||
return stylize(letter,rainbowcolors[i++ % rainbowcolors.length]);
|
return stylize(letter, rainbowColors[i++ % rainbowColors.length]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user