Debian Codegraph @

tests/test_3.py

raw symbols SCIP
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 """ Test foreground and background colors """
5
6 from colored.library import Library
7 from colored import fore, back, style
8
9
10 def main():
11
12 for name in Library.HEX_COLORS.values():
13 print(f"{fore(name)}{name:>3}", end=' ')
14
15 for name in Library.HEX_COLORS.values():
16 print(f"{back(name)}{name:>3}", end=' ')
17
18 print(style('reset')) # Reset all attributes
19
20
21 if __name__ == '__main__':
22 main()