mirror of
				https://github.com/flynx/colors.js.git
				synced 2025-10-29 11:00:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			278 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			278 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module['exports'] = function(colors) {
 | |
|   return function(letter, i, exploded) {
 | |
|     if (letter === ' ') return letter;
 | |
|     switch (i%3) {
 | |
|       case 0: return colors.red(letter);
 | |
|       case 1: return colors.white(letter);
 | |
|       case 2: return colors.blue(letter);
 | |
|     }
 | |
|   };
 | |
| };
 |