floatcolor function