Chapter 16. Graphics

You have been learning about a lot of the basic elements of computer programming: input and output, variables, decisions, loops, lists, functions, objects, and modules. I hope you have enjoyed filling up your brain with all this stuff! Now it’s time to start having a bit more fun with programming and Python.

In this chapter, you’ll learn how to draw things on the screen, like lines, shapes, colors, and even a bit of animation. This will help us make some games and other programs in the next few chapters.

Getting some help—Pygame

Getting graphics (and sound) to work on your computer can be a little complicated. It involves the operating system, your graphics card, and a lot of low-level code that we don’t really want to ...

Get Hello World! Computer Programming for Kids and Other Beginners now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.