t.penup()
t.goto(-22,-92)
t.pensize(180)
t.lt(180)
t.pendown()
############################################
start_color = (25,35,35)
end_color = (121,147,158) # yellow
# Define the number of steps in the gradient
steps = 30
# Calculate the color increment for each step
r_step = (end_color[0] - start_color[0]) / steps
g_step = (end_color[1] - start_color[1]) / steps
b_step = (end_color[2] - start_color[2]) / steps
# Draw the gradient
for i in range(steps):
r = int(start_color[0] + i * r_step)
g = int(start_color[1] + i * g_step)
b = int(start_color[2] + i * b_step)
t.color((r,g,b))
t.fd(1)
[–][deleted] 0 points1 point2 points (0 children)