Colors.jl icon indicating copy to clipboard operation
Colors.jl copied to clipboard

Linear RGB type

Open ion1 opened this issue 1 year ago • 0 comments

I would appreciate it if Colors.jl provided a linear RGB type which acts as follows. Thank you!

    @test convert(RGB, LinearRGB(0.5, 0, 0)) ≈ RGB(0.7353569830524494, 0, 0) atol=eps()
    @test convert(LinearRGB, RGB(0.7353569830524494, 0, 0)) ≈ LinearRGB(0.5, 0, 0) atol=eps()

ion1 avatar Feb 17 '25 23:02 ion1