gray(x::Fractional) was added in ColorTypes.jl v0.2 (JuliaGraphics/ColorTypes.jl@0b071ed), and it was modified to gray(x::Number) in ColorTypes.jl v0.2.12 (JuliaGraphics/ColorTypes.jl@988de55).
I think Number is too loose, but in any case the following is unnecessary:
|
ColorTypes.gray(x::Real) = x |