knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library("splattr")
Some words.
colors <- colorspace::terrain_hcl(10) colors
swatch(colors, background = "#333", margin = 10)
Some more words.
swatch(colors, height = 50)
Even more words.
ramp(colors)
We can estimate the effect of a color-vision deficiency:
ramp(colorspace::deutan(colors))
Some final words.
hcl_table(colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.