changed color representation to floats, better for smoothing