Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradient Part 4 - Conic gradients #2325

Merged
merged 8 commits into from
Oct 10, 2023
Merged

Conversation

Dherse
Copy link
Sponsor Collaborator

@Dherse Dherse commented Oct 6, 2023

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
13 tasks
crates/typst/src/export/svg.rs Outdated Show resolved Hide resolved
crates/typst/src/export/pdf/gradient.rs Outdated Show resolved Hide resolved
crates/typst/src/export/pdf/gradient.rs Outdated Show resolved Hide resolved
crates/typst/src/export/svg.rs Outdated Show resolved Hide resolved
crates/typst/src/export/svg.rs Outdated Show resolved Hide resolved
tests/typ/visualize/gradient-conic.typ Outdated Show resolved Hide resolved
@laurmaedje
Copy link
Member

Looks good, just a few comments!

@laurmaedje laurmaedje merged commit cef2d3a into typst:main Oct 10, 2023
3 checks passed
@laurmaedje
Copy link
Member

Thank you!

@Dherse Dherse deleted the gradient-conic branch October 10, 2023 12:49
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.

None yet

2 participants