I attempted to recreate a background using the code below, but I am unsure how I can recreate the background image below. I was able to get the correct colours and the yellow sun in the middle, however, I am not sure how I can do the other parts of the background image.
Background with the sun and palm tree sillhouettes
import turtle
screen = turtle.Screen()
screen.setup(width=1.0, height=1.0)
turtle.speed(0)
turtle.colormode(255)
for x in range(0,67):
turtle.color(154+x,x,254-x)
turtle.goto(0,67-x)
turtle.goto(67,67-x)
for x in range(0,55):
turtle.color(221,67+x,187-x)
turtle.goto(0,0-x)
turtle.goto(67,0-x)
for x in range(0,52):
turtle.color(221,122,132-x)
turtle.goto(0,-55-x)
turtle.goto(67,-55-x)
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.goto(0,0)
turtle.color("yellow")
turtle.circle(100)
turtle.end_fill()
New contributor
Louis Lam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.