Websocket
[VSoRC/.git] / node_modules / node-static / node_modules / colors / lib / maps / random.js
1 module['exports'] = function(colors) {
2   var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green',
3     'blue', 'white', 'cyan', 'magenta', 'brightYellow', 'brightRed',
4     'brightGreen', 'brightBlue', 'brightWhite', 'brightCyan', 'brightMagenta'];
5   return function(letter, i, exploded) {
6     return letter === ' ' ? letter :
7       colors[
8           available[Math.round(Math.random() * (available.length - 2))]
9       ](letter);
10   };
11 };