Make Art with Python by Kirk Kaiser

Make Art with Python by Kirk Kaiser

Author:Kirk Kaiser [Kirk Kaiser]
Language: eng
Format: epub, pdf
Publisher: leanpub.com
Published: 2017-12-22T00:00:00+00:00


Exploring Pygame’s Drawing Methods

Pygame provides many more ways of drawing in addition to circles and lines. In fact, if we check what’s currently in the library, we can see our options:

1 pygame.draw.rect # draw a rectangle shape 2 pygame.draw.polygon # draw a shape with any number of sides 3 pygame.draw.circle # draw a circle around a point 4 pygame.draw.ellipse # draw a round shape inside a rectangle 5 pygame.draw.arc # draw a partial section of an ellipse 6 pygame.draw.line # draw a straight line segment 7 pygame.draw.lines # draw multiple contiguous line segments 8 pygame.draw.aaline # draw fine antialiased lines 9 pygame.draw.aalines # draw a connected sequence of antialiased lines



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.