R/continuous.R
pev_fcont_diverging.Rd
Create continuous-palette function from HCL parameters
pev_fcont_diverging(.fcont_low, .fcont_high)
.fcont_low |
|
---|---|
.fcont_high |
|
function
with S3 class pev_fcont
,
when called with a numeric vector with values between 0 and 1,
returns the corresponding (hex-code) values.
# Create sequential-palette functions fcont_purple <- pev_fcont("Purples 3") fcont_green <- pev_fcont("Greens 3") # Create diverging-palette function pev_fcont_diverging(fcont_purple, fcont_green)