From d9c3928e542faabaf8a9cb3d235029939cb65f09 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 1 Dec 2019 11:07:59 +0100 Subject: utilz --- cli/app/utils/color_utils.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cli/app/utils/color_utils.py (limited to 'cli/app/utils/color_utils.py') diff --git a/cli/app/utils/color_utils.py b/cli/app/utils/color_utils.py new file mode 100644 index 0000000..e4d33ef --- /dev/null +++ b/cli/app/utils/color_utils.py @@ -0,0 +1,5 @@ +import colorsys + + +def hsv2rgb_int(h,s,v): + return tuple(round(i * 255) for i in colorsys.hsv_to_rgb(h,s,v)) \ No newline at end of file -- cgit v1.2.3-70-g09d2