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

image and svg support for canvas #2537

Merged
merged 13 commits into from
Aug 4, 2024
Merged

image and svg support for canvas #2537

merged 13 commits into from
Aug 4, 2024

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Aug 4, 2024

This PR introduces image and svg support for the canvas widget.

Raster images can be drawn with the Frame::draw_image method, while vector images can be drawn with the Frame::draw_svg method. These new methods take a canvas::Image and a canvas::Svg, respectively.

The solar_system example has been updated to showcase this new feature:

2024-08-04.04-57-09.mp4

@hecrj hecrj added this to the 0.13 milestone Aug 4, 2024
@hecrj hecrj merged commit 145c3dc into master Aug 4, 2024
24 checks passed
@hecrj hecrj deleted the feature/canvas-image-support branch August 4, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant