GraphiteEditor / GraphiteEditor/Graphite

Conic gradients

Open
#2,302 0 comments 0 reactions 0 assignees View on GitHub
Graphics
Dominant language
Rust
Stars
27.2k
Forks
1.3k
Avg merge
20h 5m
Merged PRs (30d)
57

Description

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:
- `

`
- 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](https://github.com/user-attachments/assets/ce862322-078a-4204-a202-1bccb0af5c39)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the proposed solid-triangle, rasterized base64, foreignObject/CSS, and linear-gradient strategies against the SVG viewers they need to support. Done would require choosing and implementing a conic-gradient approach or set of approaches, with the supported viewer behavior and user selection defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.