ghibli_palette: A Studio Ghibli palette generator

Description Usage Arguments Value Examples

View source: R/palettes.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
9
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")

ewenme/ghibli documentation built on Aug. 17, 2020, 7:50 p.m.