It's great for beginners. Then it turns into a mess.
This file contains hidden or 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
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| # Possession of materials alluding to Loli or Lolicon vary upon jurisdiction. | |
| # Henceforth in no event shall the author ("xsbee") be liable for any damage, | |
| # financial, legal, reputational, mental or physical. Use at your own risk. | |
| # ロリまたはロリコンをほのめかす資料の所有は、司法管轄区によって異なります。 | |
| # 今後いかなる場合でも、著者 (「xsbee」) は、金銭的、法律的、評判、精神的または身 | |
| # 体的損害について責任を負わないものとします。 自己責任。 |
This file contains hidden or 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
| // This gist contains JavaScript functions and tests for: | |
| // - conversion from gamma-corrected (or gamma-compressed) sRGB to linear RGB, to Oklab | |
| // - interpolation through Oklab | |
| // - conversion back to linear RGB, then sRGB | |
| // To use these tests, install nodejs, save this file locally, and run with: | |
| // node OklabExperiments.js | |
| // No other dependencies are required to use this. | |
| // Thanks to some helpful folks in the generative art community for helping me better understand what's happening with this. | |
| // My toddler smacked the keyboard with a piece of cardboard and made me accidentally type: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000