Skip to content

Commit 977edc9

Browse files
committed
[css-images-4] Add the use of “longer” hue interpolation for the color wheel in the example
Fix #1222
1 parent ca17ac4 commit 977edc9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

css-images-4/Overview.bs

+11-1
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,17 @@ Conic Gradient Examples</h4>
17011701
width: 200px; height: 200px;
17021702
</pre>
17031703

1704-
<img src="images/conic5.png" alt="" >
1704+
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.
1705+
1706+
<pre class=lang-css>
1707+
background: radial-gradient(closest-side, gray, transparent),
1708+
conic-gradient(in hsl longer hue, red 0 100%);
1709+
transform: scaleX(-1);
1710+
border-radius: 50%;
1711+
width: 200px; height: 200px;
1712+
</pre>
1713+
1714+
<img src="images/conic5.png" alt="color wheel">
17051715
</div>
17061716

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

0 commit comments

Comments
 (0)