GraphiteEditor / GraphiteEditor/Graphite

Along/across-stroke gradients

Aperta
#2,305 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Graphics
Lingua principale
Rust
Stelle
27.2k
Fork
1.3k
Merge medio
20h 5m
PR unite (30g)
57

Descrizione

There are two directions:

- Along the stroke

[See this](https://dev.to/uuuuuulala/gradient-along-svg-path-with-gsap-kl4) for info about how to approximate this. We can also just split up the stroke into a lot of pieces with solids colors, or with linear gradients aiming to go from the start to end, using greater subdivision where the start and end planes bend more quickly to aim for them to be close to parallel so the linear gradient works.

![Image](https://github.com/user-attachments/assets/70d8def3-b751-4bd2-84a7-e140471f66ab)

- Across the stroke

Repeat the stroke many times with increasing thickness. Use the technique described in #2268 for not mirroring at the centerline.

![Image](https://github.com/user-attachments/assets/e77de12c-42fa-41e2-b37c-0a6c2ac12991)

Regardless of method or direction, masking is likely necessary to handle end caps properly.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.