Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
7b5cbbc630
commit
8464635b2e
8
js/doc/maps/random.js
Normal file
8
js/doc/maps/random.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
var colors = Require('doc/colors');
|
||||||
|
|
||||||
|
module['exports'] = (function () {
|
||||||
|
var available = ['underline', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
|
||||||
|
return function(letter, i, exploded) {
|
||||||
|
return letter === " " ? letter : colors[available[Math.round(Math.random() * (available.length - 1))]](letter);
|
||||||
|
};
|
||||||
|
})();
|
Loading…
Reference in New Issue
Block a user