diff --git a/pycardium/modules/py/pride.py b/pycardium/modules/py/pride.py index bd971724ec9654ba844a0bfd48f75b66aaaa6ec7..36630e8cb6e212fd824e59efe4a7503eccfa7f78 100644 --- a/pycardium/modules/py/pride.py +++ b/pycardium/modules/py/pride.py @@ -15,7 +15,8 @@ flags["trans"] = [ [85, 205, 252], ] flags["bi"] = [[214, 2, 112], [155, 79, 150], [0, 56, 168]] -flags["ace"] = [[1, 1, 1], [164, 164, 164], [255, 255, 255], [150, 0, 150]] +flags["ace"] = [[1, 1, 1], [164, 164, 164], + [255, 255, 255], [150, 0, 150]] flags["greyace"] = [ [150, 0, 150], [164, 164, 164], @@ -39,7 +40,8 @@ flags["greyaro"] = [ ] flags["pan"] = [[255, 27, 141], [255, 218, 0], [27, 179, 255]] flags["inter"] = [[255, 218, 0], [122, 0, 172]] -flags["genderqueer"] = [[201, 138, 255], [255, 255, 255], [80, 150, 85]] +flags["genderqueer"] = [[201, 138, 255], [255, 255, 255], + [80, 150, 85]] flags["lesbian"] = [ [139, 60, 105], [171, 99, 143], @@ -49,7 +51,8 @@ flags["lesbian"] = [ [214, 113, 113], [134, 70, 70], ] -flags["nonbinary"] = [[255, 244, 51], [255, 255, 255], [155, 89, 208], [0, 0, 0]] +flags["nonbinary"] = [[255, 244, 51], + [255, 255, 255], [155, 89, 208], [0, 0, 0]] flags["genderfluid"] = [ [254, 117, 161], [255, 255, 255], @@ -104,11 +107,14 @@ def show_leds(flag="rainbow", brightness=0.5, gamma=1, cutoff=12, halo=True): """ Shows pride flag on the top leds. - :param str flag: Chooses flag. A list of all available flags is accessible via print_all(). Default = 'rainbow' + :param str flag: Chooses flag. A list of all available flags is accessible + via print_all(). Default = 'rainbow' :param float brightness: Set brightness of LEDs. Default = 0.5 - :param float gamma: Apply simple gamma correction to adjust colors. Default = 1 + :param float gamma: Apply simple gamma correction to adjust colors. + Default = 1 :param int cutoff: See expand(). Default = 12 - :param bool halo: Bottom LEDs copy outermost top LEDs if true. Default = True + :param bool halo: Bottom LEDs copy outermost top LEDs if true. + Default = True """ colors = ledfx.col_cor(flags[flag], brightness, gamma) output = expand(colors, cutoff)[::-1][0:11] @@ -122,9 +128,11 @@ def show_display(flag="rainbow", brightness=1, gamma=1): """ Shows pride flag on the display. - :param str flag: Chooses flag. A list of all available flags is accessible via print_all(). Default = 'rainbow' + :param str flag: Chooses flag. A list of all available flags is accessible + via print_all(). Default = 'rainbow' :param float brightness: Set brightness of LEDs. Default = 0.5 - :param float gamma: Apply simple gamma correction to adjust colors. Default = 1 + :param float gamma: Apply simple gamma correction to adjust colors. + Default = 1 """ colors = ledfx.col_cor(flags[flag], brightness, gamma) colors = expand(colors, 160) @@ -140,7 +148,8 @@ def get(flag="rainbow"): """ Returns color list of flag. - :param str flag: Chooses flag. A list of all available flags is accessible via print_all(). Default = 'rainbow' + :param str flag: Chooses flag. A list of all available flags is accessible + via print_all(). Default = 'rainbow' """ return flags[flag]