Jump to ratings and reviews
Rate this book

Computer Graphics in Python: Advanced vector graphics using Pycairo and Python

Rate this book
The Pycairo library is a Python graphics library. This book covers the library in detail, with lots of practical code examples. PyCairo is an efficient, fully featured, high quality graphics library, with similar drawing capabilities to other vector libraries and languages such as SVG, PDF, HTML canvas and Java graphics. Typical use cases standalone Python scripts to create an image, chart, or diagram; server side image creation for the web (for example a graph of share prices that updates hourly); desktop applications, particularly those that involve interactive images or diagrams. The power of Pycairo, with the expressiveness of Python, is also a great combination for making procedural images such as mathematical illustrations and generative art. It is also quite simple to generate image sequences that can be converted to video or animated gifs. This book is primarily aimed at developers who have at least a small amount of Python experience, who are looking to use Python to create computer graphics for any application. The examples in the book use basic Python constructs, you don't need to be a Python guru to learn Pycairo. No prior knowledge of computer graphics is assumed, although if you have used other graphics systems you should still find this book useful as Pycairo has its own unique quirks and features. The current edition fixes a number of minor errors noted in user reviews of the original release.

198 pages, Kindle Edition

Published January 5, 2020

1 person is currently reading
4 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
0 (0%)
3 stars
1 (100%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Stephen Maguire.
83 reviews3 followers
May 29, 2022
Gentle intro to a powerful vector graphics library. Good for for people who want to be told what to do.

I've already spent a lot of time thinking about what I want to do with a graphics package. I'm pretty well set on Pycairo since it is one of the few that use vector graphics (as opposed to pixel). But for the uses I have for it, I will want to create an image and basically use it as a stamp over and over. Between uses I'll move it, or twist it, or reflect in a mirror, but use it again and again.

I'm sure I can get Pycairo to do this, but this book doesn't give the details of the internal code to find it.

The book recommends Inkscape as a good application of Pycairo. I think I'll dig in their opensource code.
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.