@blockrun/franklin 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/banner.js +9 -23
- package/package.json +1 -1
package/dist/banner.js
CHANGED
|
@@ -8,31 +8,17 @@ const FRANKLIN_ART = [
|
|
|
8
8
|
' ██║ ██║ ██║██║ ██║██║ ╚████║██║ ██╗███████╗██║██║ ╚████║',
|
|
9
9
|
' ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝',
|
|
10
10
|
];
|
|
11
|
-
//
|
|
12
|
-
|
|
11
|
+
// Franklin brand colors
|
|
12
|
+
// Metallic gold (#D4AF37) — traditional gold bar / royal insignia color
|
|
13
|
+
// Warmer and more premium than CSS gold (#FFD700); better on dark terminals
|
|
14
|
+
// Emerald is the secondary, reserved for franklin.bet (trading) product color
|
|
15
|
+
const GOLD = '#D4AF37';
|
|
13
16
|
const EMERALD = '#10B981';
|
|
14
|
-
/** Linearly interpolate between two hex colors. t ∈ [0, 1]. */
|
|
15
|
-
function interpolateHex(start, end, t) {
|
|
16
|
-
const s = parseInt(start.slice(1), 16);
|
|
17
|
-
const e = parseInt(end.slice(1), 16);
|
|
18
|
-
const sr = (s >> 16) & 0xff;
|
|
19
|
-
const sg = (s >> 8) & 0xff;
|
|
20
|
-
const sb = s & 0xff;
|
|
21
|
-
const er = (e >> 16) & 0xff;
|
|
22
|
-
const eg = (e >> 8) & 0xff;
|
|
23
|
-
const eb = e & 0xff;
|
|
24
|
-
const r = Math.round(sr + (er - sr) * t);
|
|
25
|
-
const g = Math.round(sg + (eg - sg) * t);
|
|
26
|
-
const b = Math.round(sb + (eb - sb) * t);
|
|
27
|
-
return '#' + [r, g, b].map(v => v.toString(16).padStart(2, '0')).join('');
|
|
28
|
-
}
|
|
29
17
|
export function printBanner(version) {
|
|
30
|
-
//
|
|
31
|
-
const
|
|
32
|
-
for (
|
|
33
|
-
|
|
34
|
-
const hex = interpolateHex(GOLD, EMERALD, t);
|
|
35
|
-
console.log(chalk.hex(hex)(FRANKLIN_ART[i]));
|
|
18
|
+
// Pure gold FRANKLIN — single brand color, maximum signature strength
|
|
19
|
+
const goldFn = chalk.hex(GOLD);
|
|
20
|
+
for (const line of FRANKLIN_ART) {
|
|
21
|
+
console.log(goldFn(line));
|
|
36
22
|
}
|
|
37
23
|
console.log(chalk.bold.hex(GOLD)(' Franklin') +
|
|
38
24
|
chalk.dim(' · The AI agent with a wallet · v' + version));
|
package/package.json
CHANGED