@blockrun/franklin 3.0.1 → 3.0.2
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 +7 -22
- package/package.json +1 -1
package/dist/banner.js
CHANGED
|
@@ -8,31 +8,16 @@ const FRANKLIN_ART = [
|
|
|
8
8
|
' ██║ ██║ ██║██║ ██║██║ ╚████║██║ ██╗███████╗██║██║ ╚████║',
|
|
9
9
|
' ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝',
|
|
10
10
|
];
|
|
11
|
-
//
|
|
11
|
+
// Franklin brand colors
|
|
12
|
+
// Gold is the brand anchor — $100 bill, "Benjamins", wealth, Benjamin Franklin himself
|
|
13
|
+
// Emerald is the secondary, reserved for franklin.bet (trading) product color
|
|
12
14
|
const GOLD = '#FFD700';
|
|
13
15
|
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
16
|
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]));
|
|
17
|
+
// Pure gold FRANKLIN — single brand color, maximum signature strength
|
|
18
|
+
const goldFn = chalk.hex(GOLD);
|
|
19
|
+
for (const line of FRANKLIN_ART) {
|
|
20
|
+
console.log(goldFn(line));
|
|
36
21
|
}
|
|
37
22
|
console.log(chalk.bold.hex(GOLD)(' Franklin') +
|
|
38
23
|
chalk.dim(' · The AI agent with a wallet · v' + version));
|
package/package.json
CHANGED