View source: R/pal_luv_bezier.R
pal_luv_bezier | R Documentation |
This takes a matrix
of LUV control-points and returns a palette-function
(that returns LUV values) based on a Bézier spline using those
control-points.
pal_luv_bezier(mat_luv, rescale_path = TRUE, n = 21)
mat_luv |
|
rescale_path |
|
n |
|
The default is to rescale the palette function so that it is perceptually uniform (in LUV space) using 21 points from the spline.
A function with S3 class cpath_palette
.
# create palette-function pb <- pal_luv_bezier(mat_luv_blues) # evaluate pb(c(0, 0.5, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.