Last active
April 24, 2024 17:41
-
-
Save LeaVerou/70c83eced9bb64d59a9c2e3796d212f3 to your computer and use it in GitHub Desktop.
Polar interpolation issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Polar interpolation issues | |
*/ | |
div { | |
padding: 2em; | |
flex: 1; | |
} | |
div:nth-of-type(1) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 359)); | |
} | |
div:nth-of-type(2) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 180), oklch(70% 0.1 360)); | |
} | |
div:nth-of-type(3) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 90), oklch(70% 0.1 180), oklch(70% 0.1 270), oklch(70% 0.1 360)); | |
} | |
/* Demo styling */ | |
div { | |
padding: 1em; | |
flex: 1; | |
} | |
body { | |
padding: 2em; | |
display: flex; | |
flex-flow: column; | |
gap: 1em; | |
height: 100vh; | |
} | |
* { | |
margin: 0; | |
box-sizing: border-box; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>0 to 359: | |
<div></div> | |
<p>0 to 180 to 360: | |
<div></div> | |
<p>0 to 90 to 180 to 270 to 360: | |
<div></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment