% 1: max=max(R,G,B)
% 2: min=min(R,G,B)
% 3: if R = max, H = (G-B)/(max-min)
% 4: if G = max, H = 2 + (B-R)/(max-min)
% 5: if B = max, H = 4 + (R-G)/(max-min)
% 6:
% 7: H = H * 60
% 8: if H < 0, H = H + 360
% 9:
%10: V=max(R,G,B)/255
%11: S=(max-min)/max
1