Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametrize default viewing conditions in TS #117

Closed
wants to merge 1 commit into from
Closed

Parametrize default viewing conditions in TS #117

wants to merge 1 commit into from

Conversation

nvlang
Copy link

@nvlang nvlang commented Sep 4, 2023

This pull request (which I'm aware you can't accept, but can hopefully still be of some use) proposes to parametrize the default viewing conditions with respect to which HCT colors are created. It would indirectly resolve #116.

The idea that the L* value used in the calculation of the adaptingLuminance should be independent from backgroundLstar stems from this method in the C++ library:

ViewingConditions DefaultWithBackgroundLstar(const double background_lstar) {
return CreateViewingConditions(kWhitePointD65,
(200.0 / kPi * YFromLstar(50.0) / 100.0),
background_lstar, 2.0, 0);
}

This independence seems odd to me at first glance, but I'm probably just missing something.

@nvlang nvlang closed this by deleting the head repository Nov 29, 2023
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.

Add ViewingConditions parameter to Hct.from
1 participant