ghibli (version 0.3.4)

ghibli_palette: 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"))

Value

A vector of colours.

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.

Examples

Run this code
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")

Run the code above in your browser using DataCamp Workspace