Skip to content

Commit 0faad0a

Browse files
brianosmanLeaVerou
andauthored
Fix description and sample code for "longer" (#7890)
Co-authored-by: Lea Verou <lea@verou.me>
1 parent c66e28d commit 0faad0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4709,13 +4709,13 @@ Hue Interpolation</h3>
47094709
<h4 id="hue-longer">
47104710
<dfn export>longer</dfn></h4>
47114711

4712-
Angles are adjusted so that |θ₂ - θ₁| ∈ {0, [180, 360)}. In pseudo-Javascript:
4712+
Angles are adjusted so that |θ₂ - θ₁| ∈ {[-360, -180], [180, 360]}. In pseudo-Javascript:
47134713
<pre>
47144714
if (0 < θ₂ - θ₁ < 180) {
4715-
θ += 360;
4715+
θ += 360;
47164716
}
47174717
else if (-180 < θ₂ - θ₁ <= 0) {
4718-
θ += 360;
4718+
θ += 360;
47194719
}
47204720
</pre>
47214721

0 commit comments

Comments
 (0)