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 and 1 square) with different colors and sizes.

Get hands-on with 1400+ tech skills courses.