Newer
Older
CVSS_3.0_GUI / dist / CVSS_3.0_Calc-1.0.0-linux-x64 / node_modules / nwjs-builder-phoenix / node_modules / dir-compare / node_modules / colors / lib / maps / rainbow.js
root on 7 May 2019 344 bytes Initial commit
  1. var colors = require('../colors');
  2.  
  3. module['exports'] = (function () {
  4. var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta']; //RoY G BiV
  5. return function (letter, i, exploded) {
  6. if (letter === " ") {
  7. return letter;
  8. } else {
  9. return colors[rainbowColors[i++ % rainbowColors.length]](letter);
  10. }
  11. };
  12. })();
  13.  
Buy Me A Coffee