use foogroundColor to store fooRed in 24-bit mode