R/painbow_data.R

#' A 2D heatmap from XKCD's painbow comic
#'
#' @format A data frame with 58,425 rows and 3 variables:
#' \describe{
#'   \item{x}{x-axis position}
#'   \item{y}{y-axis position}
#'   \item{value}{A value from 0 to 1}
#' }
#' @source \url{https://xkcd.com/2537/}
"painbow_data"


#' An array of colors from XKCD's painbow comic
#'
#' @format An array with 192 hex color strings.
#' @description This set of 192 colors is the Painbow. The colors were extracted using the pixels from the color bar on the right side of the comic.
#' @source \url{https://xkcd.com/2537/}
"painbow_colors"

Try the painbow package in your browser

Any scripts or data that you put into this service are public.

painbow documentation built on Nov. 12, 2021, 1:07 a.m.