This is related to issue #56, #148, and JuliaGraphics/ColorTypes.jl#235.
I think the following return types are reasonable and leave little room for debate.
julia> RGB24(1) * 1.0
RGB{Float64}(1.0,1.0,1.0)
julia> RGB24(1) / 1.0
RGB{Float64}(1.0,1.0,1.0)
julia> RGB24(1) / 1
RGB{Float32}(1.0f0,1.0f0,1.0f0)
The following is a bit controversial, but consistent with the decision in FixedPointNumbers (cf. JuliaMath/FixedPointNumbers.jl#207).
julia> RGB24(1) * 1
RGB{Float32}(1.0f0,1.0f0,1.0f0)
However, I think the following should return RGB24 objects.
julia> RGB24(1) * 1N0f8
RGB{N0f8}(1.0,1.0,1.0)
julia> RGB24(1) / 1N0f8
RGB{N0f8}(1.0,1.0,1.0)
julia> RGB24(1) * true
RGB{N0f8}(1.0,1.0,1.0)
I'm going to fix the obviously problematic cases regarding Bool in PR #153 and release it in v0.9.5. For other cases, I am planning to change them in v0.10 with new one.
This is related to issue #56, #148, and JuliaGraphics/ColorTypes.jl#235.
I think the following return types are reasonable and leave little room for debate.
The following is a bit controversial, but consistent with the decision in FixedPointNumbers (cf. JuliaMath/FixedPointNumbers.jl#207).
However, I think the following should return
RGB24objects.I'm going to fix the obviously problematic cases regarding
Boolin PR #153 and release it in v0.9.5. For other cases, I am planning to change them in v0.10 with newone.