Paths

In this lesson, we'll learn to use paths to make complex shapes with Pycairo.

We'll cover the following...

Paths

A path is the most general type of shape. It is made up of one or more edges, which can consist of straight lines, arcs, or curves (specifically, Bezier curves). Here are a few complex paths:

The first three paths are created as follows:

  • Path A is created from 6 straight lines.
  • Path B consists of 2 straight lines and a circular arc.
...