Skip to content

Conversation

@apcamargo
Copy link
Contributor

@apcamargo apcamargo commented Dec 19, 2024

I created this colormap because I needed a perceptually uniform colormap that start started/ended with white.

download-1

from coloraide import Color

N_STEPS = 256

cm = Color.interpolate(
    [
        "color(--oklch 1.0000 0.00 000.0 / 1)",
        "color(--oklch 0.8125 0.20 122.0 / 1)",
        "color(--oklch 0.6250 0.18 192.0 / 1)",
        "color(--oklch 0.4375 0.16 232.0 / 1)",
        "color(--oklch 0.2500 0.14  34.0 / 1)",
    ],
    space="oklab",
    method="bspline",
)
cm = [cm(x / N_STEPS).convert("srgb").to_string(hex=True) for x in range(N_STEPS + 1)]

@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@590d77e). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #81   +/-   ##
=======================================
  Coverage        ?   96.99%           
=======================================
  Files           ?      161           
  Lines           ?     2097           
  Branches        ?        0           
=======================================
  Hits            ?     2034           
  Misses          ?       63           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apcamargo
Copy link
Contributor Author

Doesn't look like the test errors are related to the changes made in the PR.

Copy link
Member

@tlambert03 tlambert03 left a comment

Choose a reason for hiding this comment

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

sorry for the delay and thanks for another lovely colormap! Will release today

@tlambert03 tlambert03 enabled auto-merge (squash) January 12, 2025 17:35
@tlambert03 tlambert03 changed the title Add the pantanal colormap feat: Add the pantanal colormap Jan 12, 2025
@tlambert03 tlambert03 merged commit 9241912 into pyapp-kit:main Jan 12, 2025
23 checks passed
@tlambert03 tlambert03 added the enhancement New feature or request label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants