[RFC] Return type of scaling for non-parametric colors
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend
Hướng nghiên cứu
Read the discussion of issues #56, #148 and ColorTypes.jl#235, along with the FixedPointNumbers.jl#207 decision referenced here. The examples specify desired scaling return types, while the body says the Bool cases are planned for PR #153 and other cases for v0.10; check that work before choosing a remaining scope. Done means the agreed multiplication and division cases return the specified types.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is related to issue #56, #148, and https://github.com/JuliaGraphics/ColorTypes.jl/issues/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. https://github.com/JuliaMath/FixedPointNumbers.jl/pull/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 # This should return `RGB{Float32}` in the first place, but that is a orthogonal problem.
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.
- Ngôn ngữ chính
- Julia
- Star
- 59
- Fork
- 24
- Merge trung bình
- 13 giờ 2 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của JuliaGraphics/ColorVectorSpace.jl
-
tagbot-manual
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
JuliaGraphics/ColorVectorSpace.jl#233 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
breaking
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
JuliaGraphics/ColorVectorSpace.jl#213 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`abs2` Transision ScheduleĐang mởbreaking
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
JuliaGraphics/ColorVectorSpace.jl#208 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
JuliaGraphics/ColorVectorSpace.jl#181 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
breaking bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
JuliaGraphics/ColorVectorSpace.jl#178 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của JuliaGraphics/ColorVectorSpace.jl
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JuliaDiff/TaylorSeries.jl#445 ·
-
Prescribed ice velocities never get their halos filled, so ice is created at a periodic seamĐang mở🕷️ bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CliMA/ClimaSeaIce.jl#203 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
JuliaPhysics/BeamletOptics.jl#221 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
release preparation spack
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
30-minutes algorithm any-language codewars dart easy elixir hackerrank hacktoberfest haskell help wanted interview-prep julia leetcode lua open-source r scala students zig
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Huerte/algo-solutions-python#163 ·
Maintainer thường phản hồi trong vòng 1 ngày