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’.


rpkgs/rcolors documentation built on July 2, 2024, 8:26 a.m.