Programming for Lovers in Python: Drawing and Animating with Pygame

Publié le: 01 janvier 1970
sur la chaîne: Philomath
940
52

00:00 Start screen
08:36 Stream begins: notes about E-book
15:00 Let's code! Importing pygame
16:52 RGB color model
22:25 Creating a pygame surface and black rectangle
30:27 Graphics coordinates
34:40 Highest level snowperson drawing function
39:33 Drawing the head
49:01 Drawing a circular nose and eyes
57:31 Adding a rectangular mouth and eyebrows
1:06:30 Drawing the snowperson middle and bottom
1:18:39 The snow is yellow
1:25:24 Drawing a Game of Life board
1:47:34 Visualizing the R pentomino
1:55:01 Prettifying the visualization with circular cells
2:02:27 Scaling down the circle size to separate them
2:08:01 Changing colors, looking ahead, and happy coding 🫶

This video is part of Programming for Lovers in Python and covers multi dimensional arrays, drawing a face and drawing The Game of Life.

The material accompanies Chapter 3 of Programming for Lovers on "Discovering a Self-Replicating Cellular Automaton". It follows the code alongs shown below:

[An Intro to Graphics in Python] https://programmingforlovers.com/chap...

[Drawing the Game of Life] https://programmingforlovers.com/chap...

Programming for Lovers is an open online course where you write code to answer real scientific questions, built on award-winning teaching from Phillip Compeau, Professor at Carnegie Mellon University.

▶ Sign up for the mailing list to receive course materials, reminders, and earn a certificate:
http://eepurl.com/iC9DSg

▶ Free course materials and companion resources: https://programmingforlovers.com


▶ Practice problems and autograded exercises for this code-along:
https://cogniterra.org/course/63/promo

▶ Join the Philomath community on Discord:
  / discord  

⸻

Philomath Membership

All lectures and recordings are free and open.

If you’d like to participate more deeply—through office hours, bonus sessions, and community support—you can become a Philomath member here:

https://philomathlearning.com/?utm_so...

Membership supports the instructors and helps keep Philomath open.


Sur cette page du site, vous pouvez voir la vidéo en ligne Programming for Lovers in Python: Drawing and Animating with Pygame durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Philomath 01 janvier 1970, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 940 fois et il a aimé 52 téléspectateurs. Bon visionnage!