Skip to content

Replace the 'Luminance' node with a 'Desaturate' node with a better selection of desaturation methods - #4529

Open
Keavon wants to merge 2 commits into
masterfrom
threshold-luma
Open

Replace the 'Luminance' node with a 'Desaturate' node with a better selection of desaturation methods#4529
Keavon wants to merge 2 commits into
masterfrom
threshold-luma

Conversation

@Keavon

@Keavon Keavon commented Sep 14, 2026

Copy link
Copy Markdown
Member

No description provided.

@Keavon
Keavon requested a review from TrueDoctor as a code owner September 14, 2026 09:38
@Keavon Keavon changed the title Replace the 'Threshold' node with a 'Desaturate' node with a better selection of desaturation methods Replace the 'Luminance' node with a 'Desaturate' node with a better selection of desaturation methods Sep 14, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread node-graph/libraries/no-std-types/src/color/color_types.rs
DesaturateMethod::LightnessOkLab => {
// A gray's OkLab lightness is the cube root of its linear value, so cubing gives the gray of equal lightness
let lightness = color.lightness_oklab();
lightness * lightness * lightness

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a lightness.powi(3)

Suggested change
lightness * lightness * lightness
lightness.powi(3)

Comment thread node-graph/nodes/raster/src/adjustments.rs Outdated
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.

2 participants