summaryrefslogtreecommitdiff
path: root/cli/app/utils/color_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/app/utils/color_utils.py')
-rw-r--r--cli/app/utils/color_utils.py5
1 files changed, 5 insertions, 0 deletions
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