Fill and Stroke

Learn to use “fill” and “stroke” functions with Pycairo.

Before learning about the stroke function, let’s first make a few shapes.

Experimenting with multiple shapes

We can make multiple shapes on a surface. Each shape can be colored separately. Let’s make three shapes (2 rectangles ...