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

Rectangle rotation doesn't work #436

Closed
isopteryx opened this issue Aug 14, 2022 · 3 comments
Closed

Rectangle rotation doesn't work #436

isopteryx opened this issue Aug 14, 2022 · 3 comments

Comments

@isopteryx
Copy link

isopteryx commented Aug 14, 2022

The following doesn't rotate a rectangle, just shifts it a bit:

compose(
    context(rotation=Rotation/3)),
    rectangle(0.2w, 0.2h, 0.6w, 0.6h),
    fill(colorant"orange"))

For ellipse the same code produces an expected result.

Julia version 1.6.0, Compose v0.9.2.

@Mattriks
Copy link
Member

Yes there was PR #338, but it ran into issues (to be resolved!)

@isopteryx
Copy link
Author

Thank you, sorry for duplicate.

@isopteryx
Copy link
Author

I followed the #338, and now just use polygon with 4 points instead.

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

No branches or pull requests

2 participants