Last active
April 24, 2024 17:40
-
-
Save LeaVerou/fb8ca6783e1ba23e6f8ce1934b7f261f to your computer and use it in GitHub Desktop.
Polar interpolation discontinuity
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 discontinuity | |
*/ | |
div:nth-of-type(1) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 180)); | |
} | |
div:nth-of-type(2) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 0), oklch(70% 0.1 179)); | |
} | |
div:nth-of-type(3) { | |
background: linear-gradient(to right in oklch, oklch(70% 0.1 1), oklch(70% 0.1 180)); | |
} | |
/* 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 180: | |
<div></div> | |
<p>0 to 179: | |
<div></div> | |
<p>1 to 180: | |
<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