GraphiteEditor / GraphiteEditor/Graphite
Along/across-stroke gradients
- 主要言語
- Rust
- スター
- 27.2k
- フォーク
- 1.3k
- 平均マージ
- 20時間 5分
- マージ済み PR(30日)
- 57
説明
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.

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

Regardless of method or direction, masking is likely necessary to handle end caps properly.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、この issue で提案されている2つのアプローチと、#2268 で説明されている手法を確認してください。ストローク方向に沿ったグラデーションとストロークを横切るグラデーションをどのように表現するかを決めます。これには、細分割、ストロークの反復、端部キャップのマスキングを含みます。完了の条件は、中心線のミラーリングや端部キャップのアーティファクトなしに、両方向が正しくレンダリングされることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- computer-graphics
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100