transparentize: Adjust a color's transparency

Description Usage Arguments Value

Description

transparentize increases a color's transparency, while opacify decreases a color's transparency, making it more opaque.

Usage

1
2
3
transparentize(col, amount, mode = "relative")

opacify(col, amount, mode = "relative")

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]

amount

The amount to increase transparency [-1,1]

mode

Whether the adjustments set the value directly

Value

The adjusted color(s) as hexadecimal strings


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