-
Notifications
You must be signed in to change notification settings - Fork 0
/
callsign.js
39 lines (34 loc) · 2.36 KB
/
callsign.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
import clear from "clear";
import gradient from "gradient-string";
// ASCII art text
const tag = `
██████ ▒█████ █ ██ ██▀███ ▄████▄ ▓█████ ▄▄▄ █ ██ ██▀███ ▄▄▄
▒██ ▒██▒ ██▒ ██ ▓██▒▓██ ██▒▒██▀ ▀█ ▓█ ▀▒████▄ ██ ▓██▒▓██ ██▒▒████▄
░ ██▄ ▒██░ ██▒▓██ ▒██░▓██ ▄█ ▒▒▓█ ▄ ▒███ ▒██ ▀█▄ ▓██ ▒██░▓██ ▄█ ▒▒██ ▀█▄
▒ ██▒▒██ ██░▓▓█ ░██░▒██▀▀█▄ ▒▓▓▄ ▄██▒▒▓█ ▄░██▄▄▄▄██ ▓▓█ ░██░▒██▀▀█▄ ░██▄▄▄▄██
▒██████▒▒░ ████▓▒░▒▒█████▓ ░██▓ ▒██▒▒ ▓███▀ ░░▒████▒▓█ ▓██▒▒▒█████▓ ░██▓ ▒██▒ ▓█ ▓██▒
▒ ▒▓▒ ▒ ░░ ▒░▒░▒░ ░▒▓▒ ▒ ▒ ░ ▒▓ ░▒▓░░ ░▒ ▒ ░░ ▒░ ░▒▒ ▓▒█░░▒▓▒ ▒ ▒ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░
░ ░▒ ░ ░ ░ ▒ ▒░ ░░▒░ ░ ░ ░▒ ░ ▒░ ░ ▒ ░ ░ ░ ▒ ▒▒ ░░░▒░ ░ ░ ░▒ ░ ▒░ ▒ ▒▒ ░
░ ░ ░ ░ ░ ░ ▒ ░░░ ░ ░ ░░ ░ ░ ░ ░ ▒ ░░░ ░ ░ ░░ ░ ░ ▒
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░
`;
// Optimize gradient effect
const gradientEffect = gradient([
{ color: "#43AA88", pos: 0 },
{ color: "#3CB0AF", pos: 0.2 },
{ color: "#F6C309", pos: 0.4 },
{ color: "#F19F20", pos: 0.6 },
{ color: "#f85254", pos: 0.8 },
{ color: "#900766", pos: 0.9 },
{ color: "#50005B", pos: 1 },
]);
// Function to display the ASCII art text with gradient effect
const callsign = () => {
// Clear the terminal screen
clear();
// Display the ASCII art text with gradient effect
console.log(gradientEffect(tag));
};
// Export the callsign function
export default callsign;