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.

gpar_to_df(gp)

Arguments

gp

gpar object with a single specification. no vectors allowed

Value

data.frame with single row.

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()?