get_texture: Get color textures for a map

Description Usage Arguments Value Examples

View source: R/get_texture.R

Description

This function implements a number of new color textures for rayshader maps, allowing users to reference any of the "spacey" palettes without needing to create arrays themselves. It is extremely unlikely users will need to call this function themselves; instead, most users will call it via [automap].

Usage

1
get_texture(colorscale)

Arguments

colorscale

The color scale to return an RGB array for

Value

A matrix object provided by readPNG, suitable for use with rayshader and similar mapping utilities.

Examples

1
get_texture("spacey1")

spacey documentation built on March 15, 2020, 1:07 a.m.