Create HCL data-frame using HL surface

df_hcl(df_cl, sfc)

Arguments

df_cl

data.frame with columns c, l.

sfc

function created using surface_hl().

Value

tibble with columns h, c, l

Examples

  sfc_blues_multi <- surface_hl(c(240, 260))
  df_cl <- data.frame(l = c(20, 50, 80), c = c(0, 150, 0))

  df_hcl(df_cl, sfc_blues_multi)
#> # A tibble: 3 × 3
#>       h     c     l
#>   <dbl> <dbl> <dbl>
#> 1   244     0    20
#> 2   250   150    50
#> 3   256     0    80