-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.dart
53 lines (45 loc) · 1.83 KB
/
example.dart
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
49
50
51
52
53
/**
* Copyright (c) Crew Dev.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import 'package:colors_terminal/colors_terminal.dart' show Colors;
void main(List<String> args) {
var color = Colors();
print(color.black(color.backgroundWhite('black')));
print(color.blue('blue'));
print(color.cyan('cyan'));
print(color.green('green'));
print(color.magenta('magenta'));
print(color.red('red'));
print(color.white('white'));
print(color.brightBlack('bright black'));
print(color.brightBlue('bright blue'));
print(color.brightCyan('bright cyan'));
print(color.brightGreen('bright green'));
print(color.brightMagenta('bright magenta'));
print(color.brightRed('bright red'));
print(color.brightWhite('bright white'));
print(color.backgroundBlack(color.white('background black')));
print(color.backgroundBlue('background blue'));
print(color.backgroundCyan('background cyan'));
print(color.backgroundGreen('background green'));
print(color.backgroundMagenta('background magenta'));
print(color.backgroundRed('background red'));
print(color.backgroundWhite(color.black('background white')));
print(color.backgroundBrightBlack(color.white('backgroundBright black')));
print(color.backgroundBrightBlue('backgroundBright blue'));
print(color.backgroundBrightCyan('backgroundBright cyan'));
print(color.backgroundBrightGreen('backgroundBright green'));
print(color.backgroundBrightMagenta('backgroundBright magenta'));
print(color.backgroundBrightRed('backgroundBright red'));
print(color.backgroundBrightWhite(color.black('backgroundBright white')));
print(color.reversed('reverse'));
print(color.bold('bold'));
print(color.underline('underline'));
for (var i = 0; i <= 255; i++) {
print(color.color256('color', i));
}
}