MarkupText: Use Cairo to handle gradients
@PhilippImhof がすでに取り組んでいます。
2021年2月28日 から。
評価
この issue はまだ評価されていません。
説明
Enhancement proposal
When using gradients in MarkupText we have Pango render the text to an SVG. We then load the SVG into a SVGMobject and apply the gradient to the characters. This has two major drawbacks:
- the gradient is done on a per-character basis, i.e. every character has one solid color; the quality of the gradient therefore depends largely on the length of the text to which it is applied
- with ligatures, the number of paths does not correspond to the number of characters, so the user will have to specify an offset to compensate for this, e.g.
flcounts for two characters but might be rendered as a single glyph - similar problems arise with underline, double underline, overline and strikethrough, because those lines will also be sub-paths of the
SVGMobject
We will have to be careful w.r.t. the Write animation. Currently, even with gradients every character has its own color. If the character is itself colored with a gradient, what color is to be used for the stroke?
- 主要言語
- Python
- スター
- 62
- フォーク
- 22
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ManimCommunity/ManimPango のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ManimCommunity/ManimPango#127 ·
-
Persistent ImportError: _register_font failing on Termux (Python 3.13, aarch64)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ManimCommunity/ManimPango#126 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
ManimCommunity/ManimPango#124 ·
-
Cleaning Code再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
ManimCommunity/ManimPango#30 · コメント 3 件 ·
-
Providing a Stable API再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンenhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
ManimCommunity/ManimPango#28 · コメント 18 件 · リアクション 1 件 ·
ManimCommunity/ManimPango の issue をすべて見る
似ている issue
-
bug ready for review
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
odysseus-dev/odysseus#6641 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
happypawspillaro/happypaws#78 ·
メンテナーはふだん 4 日以内に返信
-
pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pydantic/pydantic-ai#10020 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ansible-collections/ibm_zos_core#2650 ·
-
hw: pvc tests: vllm vllm
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
intel/intel-xpu-backend-for-triton#8362 ·
メンテナーはふだん 1 日以内に返信