Handles: False colouring, hex colours, oct colours, radial gradients.

svg_colour_to_r_colour(col, state)

Arguments

col

svg colour

state

environment containing state information for this SVG

Value

valid R colour

Details

More complex CSS colour specifications like rgb(10, 20, 30, 0.5) are handled by cssparser::css_colour_to_hex()