x2hex: Convert numbers [0,1] into two-digit hex [00,ff]

Description Usage Arguments

View source: R/colors.R

Description

The names is short for: convert (x) (to) a (hex) value. Useful for generating transparency levels.

Usage

1
x2hex(x, type = "x")

Arguments

x

numeric vector

type

use "x" for lowercase hex and "X" for uppercase hex


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.