-
Notifications
You must be signed in to change notification settings - Fork 16
/
rainbow.js
51 lines (50 loc) · 3.12 KB
/
rainbow.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export function rainbow(){
let width = process.stdout.columns;
let padding = '';
for(let i=0;i<width;i++){
padding += '#';
}
let lines = [
'',
'There is a pot of gold at the end of every rainbow,',
'it is the community that is worth the diamonds.',
''
];
console.log('');
console.log(padding);
console.log(padding);
console.log('');
console.log(' \x1b[95m_________\x1b[0m')
console.log(' \x1b[95m.##\x1b[0m\x1b[36m@@\x1b[0m\x1b[32m&&&&\x1b[0m\x1b[36m@@\x1b[0m\x1b[95m##.\x1b[0m')
console.log(' \x1b[95m,##\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m::\x1b[0m\x1b[38;5;9m%&&&%%\x1b[0m\x1b[33m::\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m##.\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%%\x1b[0m\x1b[38;5;1m%%%HANDY%%\x1b[0m\x1b[38;5;9m%%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[38;5;1m00\'\x1b[0m \x1b[38;5;1m\'00\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[38;5;1m0\'\x1b[0m \x1b[38;5;1m\'0\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[38;5;1m0\x1b[0m \x1b[38;5;1m0\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[38;5;1m0\x1b[0m \x1b[38;5;1m0\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
console.log(' \x1b[95m#\x1b[0m\x1b[36m@\x1b[0m\x1b[32m&\x1b[0m\x1b[33m:\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[38;5;1m0\x1b[0m \x1b[38;5;1m0\x1b[0m\x1b[38;5;9m%\x1b[0m\x1b[33m:\x1b[0m\x1b[32m&\x1b[0m\x1b[36m@\x1b[0m\x1b[95m#\x1b[0m')
//console.log(' \x1b[95m"\x1b[0m" \x1b[33m\'\x1b[0m " " \' "\x1b[95m"\x1b[0m')
console.log(' \x1b[33m_oOoOoOo_\x1b[0m \x1b[92mTHE\x1b[0m ')
console.log(' (\x1b[33moOoOoOoOo\x1b[0m) \x1b[92mHANDSHAKE\x1b[0m')
console.log(' )\`"""""\`( \x1b[92mCOMMUNITY\x1b[0m')
console.log(' / \x1b[92mAKT\x1b[0m \\ ')
console.log(' | \x1b[92mHNS SC\x1b[0m | ')
console.log(' \\ \x1b[92mDVPN\x1b[0m / ')
console.log(' \`=========\`')
console.log('')
console.log(padding);
console.log(padding);
lines.map(l=>{
let diff = Math.floor(width-l.length)/2;
let p0 = '', p1 = '';
for(let i=0;i<diff;i++){
p0 += ' ';
p1 += ' ';
}
console.log(p0+l+p1);
});
console.log(padding);
console.log(padding);
console.log('');
}
rainbow();