Last active
March 15, 2023 04:54
-
-
Save IshanJ25/45cce0a3e2232c428a797c58a0b12c9a to your computer and use it in GitHub Desktop.
Power up your color-space (literally) with this new thought experiment: Darkness change is more perceivable to human eyes than lightness change... Maybe use that to our advantage to make a well-defined color-space... And the awesome thing is, one simple set of few carefully selected values ranging from 0-255 works well on 6-bit and 24-bit displa…
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
power = 1.732 | |
points = 10 | |
for i in range(points): | |
print(round(((i/(points-1))**power)*255)) | |
# Example graph: https://www.desmos.com/calculator/x5sgxecs9b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment