Graphics in Python

In this section we will use Pygame in order to make graphics driven programs.

Installing Pygame

1 - In order to install Pygame, you must have Python installed, and made sure to have checked "Add to Path".

2 - Open up a Powershell by right clicking on the start menu and selecting "Windows Powershell"

3 - In the Powershell, type:

pip install pygame

You are now ready to import pygame into your programs.

Program Arcade Games

We are going to be taking many of our lessons from the website Program Arcade Games:

http://programarcadegames.com/

Graphics Template

All programs we make using graphics will start with this pre-made template. Download a copy of it.

Go through Part 1 - Intro to Graphics to learn how to use the Graphics Template.

Color Picker

If you wish to use colors in your Pygame programs that go beyond the basics in the Graphics Template file, use an online color picker to define some more custom colors. Feel free to add them to your template.

Any online color picker where you can get RGB values will work. Here's one:

https://htmlcolorcodes.com/color-picker/