Skip to content

[codex] Add OKLab perceptual interpolation#26

Merged
wow-miley merged 1 commit into
mainfrom
miley/pho-10-add-oklab-color-space-and-perceptual-interpolation
May 24, 2026
Merged

[codex] Add OKLab perceptual interpolation#26
wow-miley merged 1 commit into
mainfrom
miley/pho-10-add-oklab-color-space-and-perceptual-interpolation

Conversation

@wow-miley
Copy link
Copy Markdown
Contributor

Adds OKLab and linear RGB color primitives in phosphor-core, plus opt-in NeutralColor.lerpOklab and ColorRamp.sampleOklab for perceptual interpolation across distant hues.

Keeps existing ColorRamp.sample behavior linear RGB and covers it with regression assertions.

Adds common tests for sRGB/OKLab round trips, amber-to-purple midpoint behavior, identity interpolation, and perceptual black-to-white grey.

Validation: ./gradlew ktlintFormat and ./gradlew jvmTest pass; ./gradlew iosSimulatorArm64Test was attempted but blocked before compilation by local disk exhaustion while unpacking Kotlin/Native.

@wow-miley wow-miley marked this pull request as ready for review May 24, 2026 14:56
@wow-miley wow-miley merged commit 0aef76a into main May 24, 2026
3 checks passed
@wow-miley wow-miley deleted the miley/pho-10-add-oklab-color-space-and-perceptual-interpolation branch May 24, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant