hex2rgba: Convert 6 digit hex color into a statement of "rgba(r, g, b,...

View source: R/plotly.R

hex2rgbaR Documentation

Convert 6 digit hex color into a statement of "rgba(r, g, b, a)"

Description

Convert 6 digit hex color into a statement of "rgba(r, g, b, a)"

Usage

hex2rgba(hexcolor, alpha = 1)

Arguments

hexcolor

a character vector of 6 digits hex

alpha

numeric, between 0 and 1. Default=1

Examples

hex2rgba("#294968", "#217BBB")

tpemartin/econIDV documentation built on July 2, 2023, 7:36 p.m.