Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


spacey (version 0.1.1)

get_texture: Get color textures for a map

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

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

Run this code
# NOT RUN {
get_texture("spacey1")
# }

Run the code above in your browser using DataLab