2022-03-29 18:34:26 +00:00
|
|
|
import cupy
|
2022-03-30 13:15:41 +00:00
|
|
|
import colorsys
|
|
|
|
|
|
|
|
|
|
|
|
peak = [124.3,231.5, 64.4]
|
|
|
|
h,s,v = colorsys.rgb_to_hsv(r=peak[0]/255,g=peak[1]/255,b=peak[2]/255)
|
|
|
|
SATURATION_BOOST_FACTOR = 1.5
|
|
|
|
s = min(1,s*SATURATION_BOOST_FACTOR)
|
|
|
|
print([h,s,v])
|
|
|
|
r,g,b = colorsys.hsv_to_rgb(h=h,s=s,v=v)
|
|
|
|
print([r,g,b])
|