Sha256: 85641874e0c1b9304099169479bf89b29b46c7e042c16cacef9b5e4c5f8b9e7f

Contents?: true

Size: 311 Bytes

Versions: 56

Compression:

Stored size: 311 Bytes

Contents

module['exports'] = function(colors) {
  // RoY G BiV
  var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];
  return function(letter, i, exploded) {
    if (letter === ' ') {
      return letter;
    } else {
      return colors[rainbowColors[i++ % rainbowColors.length]](letter);
    }
  };
};

Version data entries

56 entries across 55 versions & 3 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.59 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.58 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.57 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.56 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.55 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.54 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.53 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.52 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.51 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.50 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.49 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.48 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.47 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.46 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.45 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.44 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.43 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.42 node_modules/@colors/colors/lib/maps/rainbow.js
immosquare-cleaner-0.1.41 node_modules/@colors/colors/lib/maps/rainbow.js