Topic 1 - Intro to Graphics

This topic will cover how to use the Graphics Template to begin programs that use graphics. It will also cover how to draw and color shapes using the coordinate system of a Pygame window.

Part 1 - Intro to Graphics

What to Do?

1 - Make sure that you download the GraphicsTemplate.py file from the Files section at the bottom of this page. When you wish to start graphics, make a copy of this file, and re-name it so you don't overwrite the original.

You can also get a more in depth understanding of basic graphics in Pygame by reading sections 5.2-5.9 of Programming Arcade Games Chapter 5.

2 - Go through the Graphics Tutorial with Mr. Aldworth or on your own.

Here is an online colour picker to add your own colours: https://htmlcolorcodes.com/color-picker/

3 - Complete the programming assignment "Still Life".

What to Submit?

1 - The programming assignment Still Life as defined below.

  • For full marks, a variety of colors, shapes and sizes must be used to produce a cohesive image.

  • Your name must appear on it somewhere.

  • For a Level 4+, you must demonstrate at least one advanced concept in your programs such as:

        • Use a loop somehow to draw multiple shapes.

        • Have something in your picture appear at a random location each time your program is run.

Tutorial

Part 1 - Intro to Graphics.pdf

Programming Assignment

Part 1 - Intro to Graphics Assignment.pdf

Files