hsv_properties: View a color's HSV components

Description Usage Arguments Value See Also Examples

Description

hue, saturation, and brightness return the values for those components

Usage

1
2
3
4
5

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" (see rgb)

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

Value

A number indicating the component value [0,1]

See Also

adjust_hsv to manipulate these components

Examples

1
2
# Get the saturation of purple
saturation("purple")

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