Repository navigation
Expand file tree
/
Copy pathbanner-preview.js
More file actions
48 lines (44 loc) Β· 2.06 KB
/
Copy pathbanner-preview.js
File metadata and controls
48 lines (44 loc) Β· 2.06 KB
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
const C = {
orange: '\x1b[38;2;232;98;42m',
pink: '\x1b[38;2;244;160;176m',
yellow: '\x1b[38;2;240;183;49m',
green: '\x1b[38;2;107;140;78m',
blue: '\x1b[38;2;135;206;235m',
teal: '\x1b[38;2;91;184;168m',
cream: '\x1b[38;2;245;242;235m',
bold: '\x1b[1m',
reset: '\x1b[0m',
}
// M=0..11 O=12..20 N=21..31 K=32..40 E=41..49 Y=50+
const COLS = [
{ color: 'orange', start: 0, end: 11 },
{ color: 'pink', start: 12, end: 20 },
{ color: 'yellow', start: 21, end: 31 },
{ color: 'green', start: 32, end: 40 },
{ color: 'blue', start: 41, end: 49 },
{ color: 'teal', start: 50, end: 999 },
]
function colorLine(line) {
let out = ''
for (let i = 0; i < line.length; i++) {
const col = COLS.find(c => i >= c.start && i <= c.end)
out += C.bold + C[col ? col.color : 'cream'] + line[i] + C.reset
}
return out
}
const big = [
'ββββ ββββ βββββββ ββββ ββββββ ββββββββββββββ βββ',
'βββββ βββββββββββββββββββ ββββββ ββββββββββββββββ ββββ',
'ββββββββββββββ βββββββββ ββββββββββ ββββββ βββββββ ',
'ββββββββββββββ ββββββββββββββββββββ ββββββ βββββ ',
'βββ βββ βββββββββββββββ βββββββββ βββββββββββ βββ ',
'βββ βββ βββββββ βββ ββββββββ βββββββββββ βββ ',
]
console.log()
big.forEach(line => console.log(' ' + colorLine(line)))
console.log()
console.log(' ' + C.cream + 'the AI that evolves' + C.reset +
' ' + C.cream + 'v0.1.0' + C.reset +
' ' + C.green + 'β' + C.reset +
' ' + C.cream + 'claude-opus-4-6' + C.reset)
console.log()