Skip to content

Commit 3312de7

Browse files
authored
[css-images-4] Add the use of “longer” hue interpolation for the color wheel in the example (#11755)
Fix #1222
1 parent 3db9186 commit 3312de7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-images-4/Overview.bs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,17 @@ Conic Gradient Examples</h4>
17171717
width: 200px; height: 200px;
17181718
</pre>
17191719

1720-
<img src="images/conic5.png" alt="" >
1720+
You can also achieve the same effect using "longer" hue interpolation. This is more concise and makes it easy to switch to other color spaces.
1721+
1722+
<pre class=lang-css>
1723+
background: radial-gradient(closest-side, gray, transparent),
1724+
conic-gradient(in hsl longer hue, red 0 100%);
1725+
transform: scaleX(-1);
1726+
border-radius: 50%;
1727+
width: 200px; height: 200px;
1728+
</pre>
1729+
1730+
<img src="images/conic5.png" alt="color wheel">
17211731
</div>
17221732

17231733
<div class='example' id='ex-conic-pie'>

0 commit comments

Comments
 (0)