I was following the next tutorial, and the person says that you can give the background a color. That person did green as color. But i wanted the background as a sahara. Does anyone know how to add the image than in the code? I already have the sahara image and when i saved the sahar image i saw that it has been saved in a PNG file from what i can see.
I wrote the image upload in python like:
imp = image.load("def sahara.achtergrond.png") but they say in the error that the word ‘image’ is not defined.
Does anyone know how to fix this? So for the next time i will be able to do it on my own.
import turtle wn = turtle.Screen() wn.title("Falling Skies") wn.bgcolor("beige") imp =image.load("def sahara achtergrond.png") wn.setup(width= 800, height= 600)