I wish to know way to make loop of function to recreate the same shape/pattern(google photo logo) with a different rotation and position and different variables such as color. Below is code that will allow me to make one of the pallets with the correct angles but ratio is not exact. Also prefer not use any goto/home function as I need repeat this drawing later. Should I have used left/right for direction instead of set heading?
def photo():
speed(1) # turtle speed (debugging)
#speed(0)
length = 50
penup()
color("#4688f4") #Blue petal
begin_fill()
setheading(25)
forward(length/5.5)
setheading(0)
forward(length)
setheading(227)
forward(length*0.87)
setheading(135)
forward(length*0.8)
end_fill()
color("#3d6ec9") #Blue petal
begin_fill()
setheading(250)
forward(length/5)
setheading(270)
forward(length/2.6)
setheading(0)
forward(length/1.6)
end_fill()
here you see the drawing from the code...
Update:





turtle.tilt(angle)at the end of your function definition to rotate the turtle after each drawing. replace angle with appropriate valuetilt(angle)tilts the turtle image, not it's direction, not the thing it's drawing. Aright(90)will likely work better.