parseColor: Convert a CSS colour into a hex based colour code.

Description Usage Arguments Value

View source: R/styleParsing.R

Description

parseColor converts a colour value specified in CSS to a hex based colour code. Example supported input values/formats/named colours are: #0080FF, rgb(0, 128, 255), rgba(0, 128, 255, 0.5) and red, green, etc.

Usage

1
parseColor(color)

Arguments

color

The colour to convert.

Value

The colour as a hex code, e.g. #FF00A0.


basictabler documentation built on June 26, 2021, 5:05 p.m.