added cast from Double to CGFloat now required by NSColor