Skip to content

Conic gradients #2302

Description

@Keavon

This could be implemented using a few strategies, and we probably will want multiple so the user can pick what's best for their use case.

For support in all SVG viewers:

  • A whole bunch of solid-colored pie slice triangles
  • Rasterized as a base64 image at a set resolution

For support in some SVG viewers like browsers:

  • <foreignObject><div style="background: conic-gradient(red, green, blue)"></div></foreignObject>
  • Possibly fewer pie slice triangles made out of linear gradient quads given CSS perspective transforms to turn them into triangles by pinching a pair of corners, however pure SVG only supports affine transforms

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraphicsGPU and graphics programming related

    Projects

    • Status
      Medium-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions