kimikage / ColorBlendModes.jl

blend modes such as multiply, screen, overlay and so on.
MIT License
4 stars 0 forks source link

Hue blending between a gray and a non-gray #28

Closed kimikage closed 3 years ago

kimikage commented 3 years ago

The hue values of grays in HSV etc. is meaningless. The gray hues should be ignored.

julia> blend(HSV(0,0,0), HSV(100,1,0), opacity=0.5)
HSV{Float32}(50.0f0,0.5f0,0.0f0)  # actual
HSV{Float32}(100.0f0,0.5f0,0.0f0) # expected