📜  hsv转rgb python代码示例

📅  最后修改于: 2022-03-11 14:45:03.084000             🧑  作者: Mango

代码示例1
import colorsys

def hsv2rgb(self, h,s,v):
        return tuple(round(i * 255) for i in colorsys.hsv_to_rgb(h/360,s/100,v/100))
  
# H S V values should be between 0 and 1.
# If the colors are already normalised(between 0 and 1) you don't have to divide em in the return statement.

#                                                                 - sabz