Search⌘ K
AI Features

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.

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), ...