def a(R,G,B):
max1=max(R,G,B)
min1=min(R,G,B)
if R == max1: H = (G-B)/(max1-min1)
if G == max1: H = 2 + (B-R)/(max1-min1)
if B == max1: H = 4 + (R-G)/(max1-min1)
H = H * 60
if H < 0:
H = H + 360
V=max(R,G,B)
S=float((max1-min1))/max1
return (H,S,V)
***
a=Image.open(*111.png*)
b=a.load()
b[x,y]
***
max1=max(R,G,B)
min1=min(R,G,B)
if R == max1: H = (G-B)/(max1-min1)
if G == max1: H = 2 + (B-R)/(max1-min1)
if B == max1: H = 4 + (R-G)/(max1-min1)
H = H * 60
if H < 0:
H = H + 360
V=max(R,G,B)
S=float((max1-min1))/max1
return (H,S,V)
***
a=Image.open(*111.png*)
b=a.load()
b[x,y]
***









