[U] Test color scale

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-06-19 15:33:16 -04:00
parent 1eab4bb157
commit 6d77ebc7a7
2 changed files with 3 additions and 1 deletions

View file

@ -62,7 +62,7 @@ class Scale:
return RGB(*get_raw(self.rgb, ratio)) return RGB(*get_raw(self.rgb, ratio))
if __name__ == '__main__': def test_color_scale():
scale = Scale(['#232323', '#4F1879', '#B43A78', '#F98766', '#FCFAC0']) scale = Scale(['#232323', '#4F1879', '#B43A78', '#F98766', '#FCFAC0'])
colors = 100 colors = 100

View file

@ -1,3 +1,4 @@
from hyfetch.color_scale import test_color_scale
from hyfetch.color_util import RGB, printc from hyfetch.color_util import RGB, printc
from hyfetch.neofetch_util import get_command_path, run_neofetch from hyfetch.neofetch_util import get_command_path, run_neofetch
from hyfetch.presets import PRESETS from hyfetch.presets import PRESETS
@ -35,3 +36,4 @@ def test_rgb_8bit_conversion():
if __name__ == '__main__': if __name__ == '__main__':
test_rgb_8bit_conversion() test_rgb_8bit_conversion()
test_color_scale()