pev_hex_derivative: Calculate perceptual-derivative for sequence of hex-colors

Description Usage Arguments Value Examples

View source: R/hex-distance.R

Description

This assumes that hex reperesents colors on a continuous-scale where the domain varies uniformly from 0 to 1.

Usage

1
pev_hex_derivative(hex, method = "cie2000")

Arguments

hex

character vector of hex-colors

method

character method to use for distance calculation, passed to farver::compare_color(). One of: "euclidean", "cie1976", "cie94", "cie2000", or "cmc".

Value

numeric

Examples

1
2
  pev_fcont("Viridis")(seq(0, 1, by = 0.025)) %>%
    pev_hex_derivative()

ijlyttle/paleval documentation built on Dec. 25, 2019, 9:17 a.m.