Skip to content

Gradient Part 4 - Conic gradients - #2325

Merged
laurmaedje merged 8 commits into
typst:mainfrom
Dherse:gradient-conic
Oct 10, 2023
Merged

laurmaedje merged 8 commits into
typst:mainfrom
Dherse:gradient-conic

Conversation

@Dherse

@Dherse Dherse commented Oct 6, 2023 •

Copy link
Copy Markdown
Contributor

Tracking issue #2282

Adds conic gradients to typst, following a similar API to CSS.

Also fixes a couple of issues introduced in PR #2312 (an issue in the Repr impl and a doc comment).

Their interface is very simple: gradient.conic(..stops, center: (0%, 0%), angle: 15deg)

image

image

@Dherse Dherse mentioned this pull request Oct 6, 2023
11 of 13 tasks
Comment thread crates/typst/src/export/svg.rs Resolved
Comment thread crates/typst/src/export/pdf/gradient.rs Resolved
Comment thread crates/typst/src/export/pdf/gradient.rs Resolved
Comment thread crates/typst/src/export/svg.rs Resolved
Comment thread crates/typst/src/export/svg.rs Resolved
Comment thread tests/typ/visualize/gradient-conic.typ Resolved
@laurmaedje

Copy link
Copy Markdown
Member

Looks good, just a few comments!

@laurmaedje
laurmaedje merged commit cef2d3a into typst:main Oct 10, 2023
@laurmaedje

Copy link
Copy Markdown
Member

Thank you!

@Dherse
Dherse deleted the gradient-conic branch October 10, 2023 12:49
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants