Skip to content

Conversation

@teunbrand
Copy link
Contributor

@teunbrand teunbrand commented Oct 10, 2024

This PR aims to fix #236.

Briefly, it enables the colour manipulation function introduced in #424 to work on palettes introduced in #427.
It also adds a plot() method to palettes to make them easier to visualise.

devtools::load_all("~/packages/scales/")
#> ℹ Loading scales

pal_viridis() |>
  col_mix(b = "red") |>
  col_lighter(amount = 30) |>
  plot()

Created on 2024-10-10 with reprex v2.1.1

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

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

LGTM

Merge branch 'main' into palette_manipulation

# Conflicts:
#	R/pal-.R
@thomasp85 thomasp85 merged commit fda519e into r-lib:main Oct 22, 2024
@teunbrand teunbrand deleted the palette_manipulation branch October 22, 2024 08:40
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 effects to gradient_n_pal()

2 participants