R/imgpalr.R

globalVariables(c(".data"))

#' imgpalr: Create color palettes from images
#'
#' The \code{imgpalr} package is used for generating color palettes from image files.
#' It offers control over the type of color palette to derive from an image (qualitative, sequential or divergent) and other palette properties.
#' Quantiles of an image color distribution can be trimmed.
#' Near-black or near-white colors can be trimmed in RGB color space independent of trimming brightness or saturation distributions in HSV color space.
#' Creating sequential palettes also offers control over the order of HSV color dimensions to sort by.
#'
#' @docType package
#' @name imgpalr
#' @aliases imgpalr-package
NULL

#' @importFrom tibble tibble
#' @importFrom magrittr %>%
#' @importFrom graphics par plot rect text rasterImage
#' @importFrom grDevices colorRampPalette
#' @importFrom stats dist kmeans quantile
NULL

Try the imgpalr package in your browser

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

imgpalr documentation built on Sept. 10, 2023, 9:06 a.m.