Post by Martin McBride on Nov 24, 2019 9:13:01 GMT
Computer Graphics in Python is about 50% complete, and can now be purchased from Leanpub for $4.99. It contains five full chapters.
If you purchase now, you will be able to upgrade to the full edition for no extra charge when the book is complete, most likely in January 2020. By purchasing early you get access to new chapters as they arrive, the ability to comment and shape the direction of the book, and it is also quite a lot cheaper.
Table of contents so far:
1 Introduction to vector graphics 1.1 Pixel images 1.2 Size and resolution 1.3 Resizing pixel images 1.4 Drawing on pixel images 1.5 Vector graphics 1.6 Rendering 1.7 Typical uses 1.8 Benefits 1.9 Disadvantages 1.10 Common vector formats
2 Basic drawing operations 2.1 Creating an image with Pycairo 2.2 Coordinate system 2.3 Rectangles 2.4 Fill and stroke 2.5 Lines 2.6 Polygons 2.7 Open and closed shapes 2.8 Arcs 2.9 Circles 2.10 Bezier curves 2.11 Line styles
4 Transforms and state 4.1 User space and device space 4.2 Translation 4.3 Scaling 4.4 Rotation 4.5 Save and restore 4.6 Rotating about a point 4.7 Placing an ellipse 4.8 Correcting the effects of unequal scaling 4.9 Flipping 4.10 Current transform matrix
5 Working with text 5.1 Text is just shapes 5.2 How Pycairo handles text 5.3 Fonts 5.4 Font size 5.5 Font style 5.6 Text extents 5.7 Text extent examples 5.8 Text alignment