[U] Test color scale
This commit is contained in:
parent
1eab4bb157
commit
6d77ebc7a7
2 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Scale:
|
|||
return RGB(*get_raw(self.rgb, ratio))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
def test_color_scale():
|
||||
scale = Scale(['#232323', '#4F1879', '#B43A78', '#F98766', '#FCFAC0'])
|
||||
|
||||
colors = 100
|
||||
|
|
2
test.py
2
test.py
|
@ -1,3 +1,4 @@
|
|||
from hyfetch.color_scale import test_color_scale
|
||||
from hyfetch.color_util import RGB, printc
|
||||
from hyfetch.neofetch_util import get_command_path, run_neofetch
|
||||
from hyfetch.presets import PRESETS
|
||||
|
@ -35,3 +36,4 @@ def test_rgb_8bit_conversion():
|
|||
|
||||
if __name__ == '__main__':
|
||||
test_rgb_8bit_conversion()
|
||||
test_color_scale()
|
||||
|
|
Loading…
Reference in a new issue