knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

fifty

The goal of fifty is to justify a very bad twitter joke. Installation:

remotes::install_github("djnavarro/fifty")

The fifty::shades() function takes a single colour name as input and returns a palette generating function that progressively adds transparency:

library(fifty)

# two palettes against the default white background
palette_show(fifty::shades("grey"))
palette_show(fifty::shades("red"))

# the same palettes against a dark background
par(bg = "black")
palette_show(fifty::shades("grey"))
palette_show(fifty::shades("red"))

To be perfectly honest I cannot think of good use case for this.



djnavarro/fifty documentation built on Nov. 14, 2019, 8:08 p.m.