def getPreferenceColour(name):
 colorString = getPreference(name)
 return [(float(int(colorString[1:3], 16)) / 255), (float(int(colorString[3:5], 16)) / 255), (float(int(colorString[5:7], 16)) / 255), 1.0]

def getPreferenceColour ( name ) : colorString = getPreference ( name ) return [ ( float ( int ( colorString [ 1 : 3 ] , 16 ) ) / 255 ) , ( float ( int ( colorString [ 3 : 5 ] , 16 ) ) / 255 ) , ( float ( int ( colorString [ 5 : 7 ] , 16 ) ) / 255 ) , 1.0 ]
get a preference setting value as a color array .