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

Add support for affine transformations #27

Closed
AlexandruIca opened this issue Apr 30, 2022 · 0 comments · Fixed by #30
Closed

Add support for affine transformations #27

AlexandruIca opened this issue Apr 30, 2022 · 0 comments · Fixed by #30
Assignees
Labels
feature New feature or request improvement Improving an existing functionality
Projects

Comments

@AlexandruIca
Copy link
Owner

Path drawing operations and gradients should take an additional matrix that describes affine transformations (like rotation, scaling and translation).

@AlexandruIca AlexandruIca added feature New feature or request improvement Improving an existing functionality labels Apr 30, 2022
@AlexandruIca AlexandruIca added this to the Polishing basic stuff milestone Apr 30, 2022
@AlexandruIca AlexandruIca self-assigned this Apr 30, 2022
@AlexandruIca AlexandruIca added this to ToDo in Backlog via automation Apr 30, 2022
AlexandruIca added a commit that referenced this issue May 7, 2022
AlexandruIca added a commit that referenced this issue May 7, 2022
This module implements affine transformations. It also includes a
`map_viewbox` function that maps a point on the viewbox to a point on
the actual canvas.
AlexandruIca added a commit that referenced this issue May 7, 2022
@AlexandruIca AlexandruIca linked a pull request May 7, 2022 that will close this issue
AlexandruIca added a commit that referenced this issue May 8, 2022
I'm not using an augmented matrix representation. I'm transforming the
points directly.
AlexandruIca added a commit that referenced this issue May 8, 2022
I now provide a callback that can be called when running tests. That
callback receives a `&mut Canvas` so arbitrary paths can be drawn on the
canvas. This is used for the `affine_transforms_test`.
Backlog automation moved this from ToDo to Done May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request improvement Improving an existing functionality
Projects
Development

Successfully merging a pull request may close this issue.

1 participant