Trying to make a simple gradient between red #ff0000 and blu #0000ff with color spaces HSL and HSB I have an unexpected result. It seem works correctly with RGB and L*a*b*.
Expected behavior should be similar to RGB and L*a*b* spaces.
Additional considerations:
- For
HSL color space, increasing the steps the gradient seems to make the opposite turn of the wheel instead of the shortest way.
- For
HSB I cannot understand which way is used.
Maybe this func could have a bug: mixedHue(source: CGFloat, target: CGFloat) in DynamicColor+Mixing.swift




Trying to make a simple gradient between red
#ff0000and blu#0000ffwith color spaces HSL and HSB I have an unexpected result. It seem works correctly withRGBandL*a*b*.Expected behavior should be similar to
RGBandL*a*b*spaces.Additional considerations:
HSLcolor space, increasing the steps the gradient seems to make the opposite turn of the wheel instead of the shortest way.HSBI cannot understand which way is used.Maybe this
funccould have a bug:mixedHue(source: CGFloat, target: CGFloat)inDynamicColor+Mixing.swift