Repository navigation
Show each LUT's fingerprint in the sidebar - #42
Merged
Merged
Conversation
…rough the cube The LUT list was names only. Each row now leads with a small strip of seven reference patches — a three-step gray ramp, skin, sky, foliage and red — sampled through that cube, so the tone curve and the hue shifts of a look are visible before it is selected. The "None" row shows the untouched patches, which is what every other row is a change from. `CubeLUT.sample(_:)` is a trilinear lookup on the CPU, the same interpolation CIColorCube does; `swatches` is computed once at init from the floats the table is built from. Three tests pin identity, red-fastest ordering, and interpolation between lattice points. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ViSYWttguWwFQm1PEksQ7K
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The LUT list was names only. Each row now leads with a strip of seven reference colors — a three-step gray ramp, skin, sky, foliage and red — sampled through that cube, so a look's tone curve and hue shifts are visible before selecting it. The None row shows the untouched patches, which every other row is a change from. That strip is the only new element in the row; the size goes into the tooltip.
CubeLUT.sample(_:): trilinear lookup on the CPU, matching CIColorCube, reading the table in place.CubeLUT.swatches: computed once at init, for file and in-memory LUTs alike.SwatchStrip: 56×18, rounded, hairline border, accessibility-hidden (the name carries the row).Test plan
swift test: 359 tests, 0 failures. New: identity leaves the patches alone, red-fastest ordering, interpolation between lattice points.🤖 Generated with Claude Code
https://claude.ai/code/session_01ViSYWttguWwFQm1PEksQ7K