rgb_properties: View a color's RGB components

Description Usage Arguments Value See Also Examples

Description

red, green, blue, and alpha return the values for those components in RGBA space.

Usage

1
2
3
4
5
6
7

Arguments

col

Vector containing any of the three kinds of R color specifications:

  1. a color name (see colors)

  2. a hexadecimal string of the form "#rrggbb" or "#rrggbbaa"(see rgb)

  3. a positive integer i meaning palette()[i]

Value

A number indicating the component value [0,1]

See Also

adjust_rgb to manipulate these components

Examples

1
2
# Get a color's blue-ness
blue("mediumpurple2")

briandconnelly/colormod documentation built on May 13, 2019, 5:13 a.m.