ghibli_palette: A Studio Ghibli palette generator

View source: R/palettes.R

ghibli_paletteR Documentation

A Studio Ghibli palette generator

Description

These are some color palettes from Studio Ghibli films. All color schemes are derived from Movies In Color.

Usage

ghibli_palette(name, n, direction = 1, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette.

n

Number of colors desired. All palettes now only have seven colors. If omitted, uses all colours.

direction

Either '1' or '-1'. If '-1' the palette will be reversed.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

Value

A vector of colours.

Examples

ghibli_palette("PonyoLight")
ghibli_palette("LaputaMedium")
ghibli_palette("SpiritedDark")
ghibli_palette("MarnieMedium2", 3)

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- ghibli_palette(name = "YesterdayLight", n = 21, type = "continuous")

ghibli documentation built on Aug. 26, 2022, 5:11 p.m.