summaryrefslogtreecommitdiff
path: root/cli/app/utils/color_utils.py
blob: e4d33ef5432d00ea9b03065cf0a27253301295dd (plain)
1
2
3
4
5
import colorsys


def hsv2rgb_int(h,s,v):
  return tuple(round(i * 255) for i in colorsys.hsv_to_rgb(h,s,v))