Skip to content

Instantly share code, notes, and snippets.

@watous
Last active December 20, 2024 21:45
Show Gist options
  • Save watous/ffd299a322657673bfd0b5d3c4e14e19 to your computer and use it in GitHub Desktop.
Save watous/ffd299a322657673bfd0b5d3c4e14e19 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@donhatch
Copy link

"(?)" is right! I do not claim to understand what it's thinking-- multiple spooky layers of gamma correction and anticorrection everywhere, I suppose. But you're right, in the end sRGB seems to make it come out with #555555 in the center (and e.g. #800080 in the middle of the magenta edge), which seems like what we want, whereas linearRGB seems to make them come out gamma-adjusted to be somewhat brighter than that in the end.

@watous
Copy link
Author

watous commented Dec 20, 2024

I have at least fixed the gradients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment