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)


ijlyttle/splattr documentation built on Sept. 14, 2020, 12:04 a.m.