Skip to content

ColorType.gray(x::Real) is no longer needed #124

Description

@kimikage

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions