Category on UIImage to return a solid color image of a specified size.

I know what you mean, but color/animation values don't really benefit from double precision within the range that UIKit operates, so double isn't a big deal here. CGFloat is only a 32-bit float on 32-bit systems after all.