gpar_to_df: Convert a gpar object to a data.frame

Description Usage Arguments Details Value

View source: R/css-style-to-gp-vp.R

Description

This converts a gpar object to a 1-row data.frame representation. This is used when accumulating a data.frame representation to return to the user.

Usage

1

Arguments

gp

gpar object with a single specification. no vectors allowed

Details

Linear and Radial gradient objects are replaced with their first colour. Although this could be something fancier e.g. list object, or some text representation of the gradient parameters. Maybe just deparse1()?

Value

data.frame with single row.


coolbutuseless/svgparser documentation built on Dec. 26, 2021, 12:03 a.m.