Pixel art examples

Today we’ll combine the ideas of loops and conditionals to do more graphics work. It will further extend our ability to do repeated tasks in Python and serve as the foundation for animation in Python.

Note: The Drawing Mario video is LONG. Instead of watching the whole thing, watch the first bit and see if you get the gist. Then try to take the STARTER file in the lecture files for today and turn it into the FINAL file by completing the two function definitions. This is BY FAR the hardest things we’ve done with loops so-far and will be much more difficult than the loops we’ll need for Tutorial 4 and Homework 5. If you find it confusing…come with questions to class or post on edSTEM!

Note 2: The way we animate in this example an in the tutorial is different than the Exercise this week. Please make sure to read the instructions of Exercise 5 before trying to complete it.


In-Class Resources


📊 Slides
🐍 .PY Examples
🎬 Available Videos 🎥
Link Title Type Duration
Video 1 Intro pre-recorded 5:00
Video 2 Drawing Mario! pre-recorded 20:00
Video 3 Intro to Animation

(MQ - No Longer Available)

video_quiz 9:51

1. Other Materials