Allow arbitrary rotations by being able to specify an anchor point [qtblend] #1110
+27
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
I think it would be a nice addition for the qtblend filter to be able to set the rotation anchor point so you can rotate around any point you want.
I (mis)used a rect type parameter for this as I didn't find a point-equivalent parameter type and just used x and y component out of it.
If you're interested in this change I'd be happy to change it to something more appropriate if you can guide me 🙂
Here are some examples how it could be used:
Rotate around bottom-right corner (1,1)
Rotate around some point outside the rectangle (-0.5, 0.5)
Rotate around center (0.5, 0.5), equivalent to rotate_center set to 1
Rotate around top-left corner (0, 0), equivalent to rotate_center set to 0
In Inkscape this could be done like so:
inkscape_rotation_anchor.webm