-
Notifications
You must be signed in to change notification settings - Fork 289
/
bbs.js
executable file
·42 lines (40 loc) · 1.3 KB
/
bbs.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
#!/usr/bin/env node
var art = require('../../art');
var Color = require('ascii-art-ansi/color');
Color.is256 = true;
Color.useDistance('euclideanDistance');
art.font('I N T E R N E T', 'Doom').lines(0, 6, function(err, logo){
art.font('Serious Business', 'rusted', function(err, subtext){
art.table({
verticalBar : ' ',
horizontalBar : ' ',
intersection : ' ',
data:[
{name: art.style('current users', 'red', true), value: '203'},
{name: 'operator', value: 'vince.vega'},
{name: 'dial-in', value: '(917)555-4202'},
]
}).lines(2, function(err, table){
art.image({
filepath :'Images/serious-business.jpg',
alphabet : 'blocks'
}).lines(2, 50).overlay(logo, {
x: 8,
y: 0,
style: 'blue',
}).overlay(table, {
x: -1,
y: -4,
transparent : true,
style: 'green',
}).overlay(subtext, {
x: 12,
y: -1,
transparent : true,
style: 'yellow',
}, function(err, final){
console.log(final);
});
});
});
});