Package: palettecore 0.2.2

Heidi Helena Andersén
palettecore: Derive, Optimise and Audit a Scientific Colour Palette from One Seed Colour
Generates sequential, diverging and categorical colour palettes from a single seed colour in OKLCH with CIEDE2000 spacing, and audits every palette under simulated colour-vision deficiency, greyscale conversion, sRGB gamut and WCAG contrast. Colour-vision deficiency is simulated at severity 1.0 with the model of Machado, Oliveira and Fernandes (2009) <doi:10.1109/TVCG.2009.113>; the design rationale follows Crameri, Shephard and Heron (2020) <doi:10.1038/s41467-020-19160-7>. Mirrors the 'Python' reference implementation maintained in the same repository and is validated against shared parity fixtures. Thresholds are configurable design rules, not established accessibility cut-offs.
Authors:
palettecore_0.2.2.tar.gz
palettecore_0.2.2.zip(r-4.7-any)palettecore_0.2.2.zip(r-4.6-any)palettecore_0.2.2.zip(r-4.5-any)
palettecore_0.2.2.tgz(r-4.6-any)palettecore_0.2.2.tgz(r-4.5-any)
palettecore_0.2.2.tar.gz(r-4.7-any)palettecore_0.2.2.tar.gz(r-4.6-any)
palettecore_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
palettecore/json (API)
| # Install 'palettecore' in R: |
| install.packages('palettecore', repos = c('https://heidihelena.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/heidihelena/palettecore/issues
accessibilityciede2000colorcolorblinddata-visualizationoklchpalettepython
Last updated from:ef9f78d8ff. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 138 | ||
| source / vignettes | OK | 130 | ||
| linux-release-x86_64 | OK | 109 | ||
| macos-release-arm64 | OK | 92 | ||
| macos-oldrel-arm64 | OK | 67 | ||
| windows-devel-x86_64 | OK | 71 | ||
| windows-release-x86_64 | OK | 67 | ||
| windows-oldrel-x86_64 | OK | 59 | ||
| wasm-release | OK | 107 |
Exports:ciede2000contrast_ratiogenerate_palettehex_to_oklchhex_to_srgbmax_chromaoklch_to_hexout_of_gamut_excursionscale_color_accessiblescale_colour_accessiblescale_fill_accessiblesimulate_cvdsrgb_to_hex
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| CIEDE2000 colour difference between two sRGB colours | ciede2000 |
| WCAG 2.x contrast ratio between two sRGB colours | contrast_ratio |
| Generate an audited palette from one seed colour | generate_palette |
| Convert a HEX colour to OKLCH | hex_to_oklch |
| Convert a HEX colour to sRGB | hex_to_srgb |
| Largest OKLCH chroma at (L, H) inside the sRGB gamut | max_chroma |
| Convert an OKLCH colour to HEX | oklch_to_hex |
| Pre-clamp gamut excursion of a CVD simulation | out_of_gamut_excursion |
| Discrete colour scale from an audited palettecore palette | scale_color_accessible scale_colour_accessible |
| Discrete fill scale from an audited palettecore palette | scale_fill_accessible |
| Simulate colour-vision deficiency (complete dichromacy) | simulate_cvd |
| Convert an sRGB colour to HEX | srgb_to_hex |