The geometry module provides classes for drawing shapes.
The module consist of a base
Shape class, plus separate classes for drawing shapes such as
Polygon etc. Since there are quite a lot of shape classes, they are documented separately in the shapes section.
The shape classes are intended to supplement the normal Pycairo drawing methods, so make common shapes a bit less cumbersome. You can always mix and match native Pycairo calls with shape calls, which is useful for drawing complex shapes or using special fills such as gradients or patterns.
The Image class of the geometry module provides a simple way to render an image from a PNG file.
Copyright (c) Axlesoft Ltd 2020