Flipping
Explore how to flip shapes in Pycairo by mirroring user space around specific lines on the x and y axes. Understand translation and scaling techniques to reverse shapes, enabling precise graphic transformations.
We'll cover the following...
We'll cover the following...
What does flipping do?
Flipping, or mirroring, flips the whole user space around a line to reverse shapes.
Flip along the y-axis
In Pycairo, we can play around with different transformations to achieve different tasks. Here is an example of a flip along the y-axis:
The red arrow is formed from the points (100, 200), ...