generativepy.geometry module

Martin McBride, 2020-08-01
Tags geometry
Categories generativepy generative art

generativepy has moved to the website, and this page might not be up to date. Please visit the new location.

The geometry module provides classes for drawing shapes.

Shape classes

The module consist of a base Shape class, plus separate classes for drawing shapes such as Rectangles, 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 2021