Skip to content

Instantly share code, notes, and snippets.

@IshanJ25
Last active March 15, 2023 04:54
Show Gist options
  • Save IshanJ25/45cce0a3e2232c428a797c58a0b12c9a to your computer and use it in GitHub Desktop.
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…
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