Skip to content

okhsv/okhsl/oklab support? #62

@weltkante

Description

@weltkante

Classic HSV/HSL is fundamentally broken, especially for color pickers, we can do way better by properly using perceptual data for arranging the colors in HSV/HSL-like scenarios.

Refer to https://bottosson.github.io/posts/colorpicker/ and https://bottosson.github.io/posts/oklab/ for a detailed explanation if you aren't aware. There's also a demo for comparison at https://bottosson.github.io/misc/colorpicker

This isn't a niche thing, it had significant impact and shouldn't be ignored, quoting:

From personal project to industry standard

When introduced Oklab in 2020, I never expected it to reach as far as it has. In a few years Oklab has, among other things, found its way into:

  • Photoshop – Now the default interpolation method for gradients
  • Web browsers – Part of CSS Color Level 4 and 5, supported by major browsers
  • Game engines – Used in Unity’s gradients and Godot’s color picker

It looks like someone started to work on (some of) this a few years ago in #43 but it is marked as draft and never was merged, nor was any additional info provided, so I'm doing this by creating this issue. If there's anything to help along (and the original PR creator isn't available to finish the PR) I can consider helping out, too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions