Skip to content

Gradient fills with R 4.1 #17

@jimjam-slam

Description

@jimjam-slam

Hi Claus,

I'm thinking of having a play with R-devel to see what the new grid gradient support is like:

The ‘grid’ package now allows ‘gpar(fill)’ to be a ‘linearGradient()’, a ‘radialGradient()’, or a ‘pattern()’.

My naive attempt to see if this integrates with gridtext and ggtext is to just straight-up supply a grid::linearGradient in lieu of a colour string for fill arguments. Do you think it's likely to be that simple, or will it require some pass-through?

I understand dev is frozen on this package for now. Depending on the complexity, I might be able to submit a PR to enable this with a little guidance (or maybe I get lucky and it doesn't need any changes at all).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions