GraphiteEditor / GraphiteEditor/Graphite
Freeform gradients
- Langage dominant
- Rust
- Étoiles
- 27.2k
- Forks
- 1.3k
- Merge moyen
- 20 h 5 min
- PR mergées (30 j)
- 57
Description
Similar to #2302, we need to find a clever way to generate these within the SVG or SVG + CSS spec. Rasterization is probably the most likely approach here. But here are some ideas:
- Rasterization.
- A point cloud of circles with radial gradients interpolating over alpha, with optional transforms to essentially create 2D Gaussian splats.
- For use cases supporting CSS as part of SVG, we can render quads with linear gradients applied to each edge which generates a quad of a mesh, then the CSS perspective transform would skew the four corners to fit within the mesh adjacent to other quads doing the same thing to build a mesh representing the full freeform gradient.
There are two possible sources of color spread, which can be mixed:
- Point (with a color and radius)

- Path (with a color interpolated along the path, such as being set at each anchor)

Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par lire issue #2302 et les spécifications SVG et CSS pertinentes afin de comprendre les exigences associées aux dégradés. Comparez les approches de rastérisation, de nuage de points et de maillage répertoriées ; le travail devra être considéré comme terminé lorsque Graphite pourra générer des dégradés de forme libre avec la diffusion des couleurs requise, basée sur des points et des tracés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- css, rust
- Domaine
- computer-graphics
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100