#### String to r,g,b ## (0.5 offset to prevent numerical roundoff) r255=int(real("0x".srgb0[2:3])+0.5) g255=int(real("0x".srgb0[4:5])+0.5) b255=int(real("0x".srgb0[6:7])+0.5) #### #print 'r255, g255, b255 =',r255,g255,b255 #r1=fr255(r255,g255,b255) #g1=fg255(r255,g255,b255) #b1=fb255(r255,g255,b255) #print 'r1,g1,b1 =',r1,g1,b1 srgb1=f2rgb255(r255,g255,b255) #print 'rgb old, new = ',srgb0,' ',srgb1