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
Both angles and their difference need to be constrained to [0, 360) prior to interpolation. To do this, the minimum number of turns that fit in the lesser angle is added or subtracted from both angles, bringing the lesser angle into the range [0,360); and if the difference between them is greater than or equal to 360° then the minimum number of turns to bring the difference into the range [0,360) is further subtracted from the greater angle.
In addition, even if the normalization of <hue> is skipped before the above paragraph, it still fails to achieve what it claims. Example: (θ₁, θ₂) = (300, 600) passes through intact.
Note: I'm opening this issue as a follow-up to #8838 because it would simplify a lot for explaining the (conditional) equivalence of short/longer and increasing/decreasing in mdn/content#28943.
Since f46b5d4, any
<hue>
is already normalized to be within the range[0, 360)
, so the algorithms in 12.4.1. shorter, 12.4.2. longer, 12.4.3. increasing and 12.4.4. decreasing already work as expected without the third paragraph under 12.4. Hue Interpolation:In addition, even if the normalization of
<hue>
is skipped before the above paragraph, it still fails to achieve what it claims. Example:(θ₁, θ₂) = (300, 600)
passes through intact.Note: I'm opening this issue as a follow-up to #8838 because it would simplify a lot for explaining the (conditional) equivalence of
short
/longer
andincreasing
/decreasing
in mdn/content#28943.Cc @svgeesus.
The text was updated successfully, but these errors were encountered: