get_colormind_colors: Retrieve color palette from colormind, give suggestions

Description Usage Arguments Value Examples

View source: R/get.R

Description

Retrieve color palette from colormind, give suggestions

Usage

1
2
3
4
5
6
7
get_colormind_colors(
  x = NULL,
  model = "default",
  user_agent = "colormind R package github.com/dmi3kno/colormind",
  verbose = TRUE,
  ...
)

Arguments

x

character vector of valid colors in hex or string (color names) format, which should serve as starting values for generated palette. Can contain missing values. Maximum length of vector is 5.

model

one of color models returned by 'get_colormind_models()'. Default value is "default".

user_agent

Optional user agent string to be used when querying colormind.io

verbose

optional argument for suppressing messages. Default is 'TRUE'

...

other parameters passed to 'config' argument of 'httr::POST'

Value

vector of colors in hex format

Examples

1
2
if(curl::has_internet())
   get_colormind_colors()

dmi3kno/colormind documentation built on Feb. 23, 2020, 7:53 a.m.