get_palette: Get a palette

Description Usage Arguments Details

View source: R/palette-fns.R

Description

Gets a palette from colour lovers or builds one from a custom palette

Usage

1
2
3
get_palette(method = "random", show = TRUE, k = NULL,
  bg_hue = "monochrome", custom_pal = NULL, custom_bg = NULL,
  id = NULL, image = NULL)

Arguments

method

Either random hue or a use defined one (see details)

show

Prints a colour scale

k

Number of colours to generate

bg_hue

Background hue (see details)

custom_pal

A custom palette. Can be any number of hex codes

custom_bg

A custom background colour. Baically just adds it to the object.

id

ID of user on colorlovers

image

Location of the image from which to extract a palette

Details

Hue can be monochrome, blue, red, green, yellow, pink, purple, orange or random. Utilises the random colour package.


doehm/myPalettes documentation built on March 2, 2020, 11:19 a.m.