PR: Implement support for programmatic polar conversions. #1272
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.
Summary
This PR implements support for programmatic polar conversions and adds the following definitions:
colour.Lab_to_LCHab
*colour.LCHab_to_Lab
*colour.Luv_to_LCHuv
*colour.LCHuv_to_Luv
*colour.hdr_CIELab_to_hdr_CIELCHab
colour.hdr_CIELCHab_to_hdr_CIELab
colour.Hunter_Lab_to_Hunter_LCHab
colour.Hunter_LCHab_to_Hunter_Lab
colour.Hunter_Rdab_to_Hunter_RdCHab
colour.Hunter_RdCHab_to_Hunter_Rdab
colour.ICaCb_to_IaCH
colour.IaCH_to_ICaCb
colour.ICtCp_to_ItCH
colour.ItCH_to_ICtCp
colour.IgPgTg_to_IgCH
colour.IgCH_to_IgPgTg
colour.IPT_to_ICH
colour.ICH_to_IPT
colour.Izazbz_to_IzCH
colour.IzCH_to_Izazbz
colour.Jzazbz_to_JzCH
colour.JzCH_to_Jzazbz
colour.hdr_IPT_to_hdr_ICH
colour.hdr_ICH_to_hdr_IPT
colour.Oklab_to_Oklch
colour.Oklch_to_Oklab
colour.ProLab_to_ProLCHab
colour.ProLCHab_to_ProLab
colour.IPT_Ragoo2021_to_ICHPT_Ragoo2021
colour.ICHPT_Ragoo2021_to_IPT_Ragoo2021
* Now programmatically defined.
References #1183.
Preflight
Code Style and Quality
colour
,colour.models
.Documentation