mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
perf: monochrome
This commit is contained in:
parent
8e77afadc3
commit
92f700384e
@ -213,10 +213,7 @@ const utils = {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
rainbow(msg) {
|
rainbow(msg) {
|
||||||
const
|
this.proPrint(msg.map(it => it.split('').map(l => chalk.hex("#89cff0")(l)).join('')), '\n')
|
||||||
colors = ['red', 'yellow', 'green', 'cyan', 'blue', 'magenta'],
|
|
||||||
colorsCount = colors.length;
|
|
||||||
this.proPrint(msg.map(it => it.split('').map((l, i) => chalk[colors[i % colorsCount]](l)).join('')), '\n')
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @param {number} done
|
* @param {number} done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user