read_color: read colors from ncl

View source: R/read_color.R

read_colorR Documentation

read colors from ncl

Description

read colors from ncl

Usage

read_color(file)

Arguments

file

ncl rgb file

Value

A character vector with elements of 7 or 9 characters, "#" followed by the red, blue, green and optionally alpha values in hexadecimal (after rescaling to 0 ... 255). The optional alpha values range from 0 (fully transparent) to 255 (opaque).

R does not use ‘premultiplied alpha’.


kongdd/rcolormap documentation built on April 9, 2024, 11:22 a.m.