Skip to content

Commit 09236c1

Browse files
committed
[to merge into previous commit] Address review comments from @LeaVerou, and fix inconsistent indent.
1 parent 8d02434 commit 09236c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-color-5/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,9 @@ Unless the type of hue interpolation is ''specified'', both angles need to be co
752752
One way to do this is <code><i>θ</i> = ((<i>θ</i> % 360) + 360) % 360</code>.
753753

754754
: ''shorter''
755-
:: Angles are adjusted so that θ₂ - θ₁ ∈ [-180, 180). In pseudo-Javascript:
755+
:: Angles are adjusted so that θ₂ - θ₁ ∈ [-180, 180]. In pseudo-Javascript:
756756
<pre>
757-
if (θ₂ - θ₁ >= 180) {
757+
if (θ₂ - θ₁ > 180) {
758758
θ₁ += 360;
759759
}
760760
else if (θ₂ - θ₁ < -180) {
@@ -763,13 +763,13 @@ One way to do this is <code><i>θ</i> = ((<i>θ</i> % 360) + 360) % 360</code>.
763763
</pre>
764764

765765
: ''longer''
766-
:: Angles are adjusted so that θ₂ - θ₁ ∈ {(-360, -180], 0, (180, 360)}. In pseudo-Javascript:
766+
:: Angles are adjusted so that |θ₂ - θ₁| ∈ {0, [180, 360)}. In pseudo-Javascript:
767767
<pre>
768-
if (0 < θ₂ - θ₁ <= 180) {
769-
θ₁ += 360;
768+
if (0 < θ₂ - θ₁ < 180) {
769+
θ₁ += 360;
770770
}
771771
else if (-180 < θ₂ - θ₁ < 0) {
772-
θ₂ += 360;
772+
θ₂ += 360;
773773
}
774774
</pre>
775775

0 commit comments

Comments
 (0)