Skip to content

Gamma Correction for Custom Palettes #3399

Closed

Description

@BaconWithThat

Is your feature request related to a problem? Please describe.
I am trying to implement custom palettes and the output doesn't match my expectation. After some experimentation, the output matches what I see with gamma correction turned off. After some chat on discord, it was confirmed that custom palettes are expected to be gamma corrected.

Describe the solution you'd like
I think the most straightforward solution would be to do gamma correction for custom palettes.

Describe alternatives you've considered
If I knew how to do the gamma correction manually, I could do that and save the corrected values as a custom palette.

Additional context
Thanks to Blazoncek in the discord for helping me.

Activity

  1. added this to the 0.14.1 candidate milestone on Sep 30, 2023
  2. blazoncek commented on Sep 30, 2023

    @blazoncek
    Contributor

    Just a clarification for further consideration:
    Existing FastLED palettes are already gamma corrected (at least kind of) but custom palettes are not.
    Custom palette editor (available since 0.14.0-b2) does not know of any gamma correction and uploads palette as entered in UI. Also, it is possible to enter palette using /edit maintenance page.
    So, custom palettes will remain gamma unadjusted in the file. We can adjust gamma when loading such palette from file into RAM.
    Unfortunately this will have performance impact as loading can happen thousands of times per second.

  3. BaconWithThat commented on Oct 1, 2023

    @BaconWithThat
    Author

    Could we get instructions on how to do gamma correction as an article on the wiki? Then users w/ custom palettes could put the gamma corrected colors into their custom palettes. I'm unsure what the downside would be aside from it looking wonky on the computer screen.

  4. BaconWithThat commented on Oct 1, 2023

    @BaconWithThat
    Author

    I ended up using the values in the built in Gamma correction table to manually transpose my custom palette and it looks great.

  5. blazoncek commented on Oct 1, 2023

    @blazoncek
    Contributor

    I've implemented gamma correction for custom palettes.
    Will be available in 0.14.1

  6. added
    fixed in source
    on Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfixed in source

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions