Share your repls and programming experiences

← Back to all posts
Earth Eyes Part III
PedroGZV (0)

My assignment.

  1. Open and paste the resized Earth, Mars, or another round object over the student's left eye. (if you are using the earth, you don't need to open that file a second time)
  1. Open and paste at least 3 other resized objects. Ideas: a hat, an orange slice over her mouth, a parrot to sit on her shoulder.

You can fork this project: https://replit.com/@garrettshorr/Earth-Eyes-Per-1-2020-21#main.py
Scroll down to line 39 for the comments that describe what you should do.

If you get an error that says "bad transparency mask", add this to the end of the line where you open the image:
.convert("RGBA")

Example: earth_img = PIL.Image.open(earth_file).convert("RGBA")

Submission Instructions:
Turn in a doc with a screenshot of the final image output and a link to the repl.