You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 withRGB
andL*a*b*
.Expected behavior should be similar to
RGB
andL*a*b*
spaces.Additional considerations:
HSL
color space, increasing the steps the gradient seems to make the opposite turn of the wheel instead of the shortest way.HSB
I cannot understand which way is used.Maybe this
func
could have a bug:mixedHue(source: CGFloat, target: CGFloat)
inDynamicColor+Mixing.swift
The text was updated successfully, but these errors were encountered: