Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import simple_draw as sd
- sd.resolution=(1200,900)
- def branch(point,angle,length,width=3):
- vector =sd.get_vector(start_point=point,angle=angle,length=length,width=width)
- vector.draw(color=sd.random_color())
- point_2=vector.end_point
- angle_2=angle-30
- length_2 = length
- branch(point=point_2,angle=angle_2,length=length_2)
- point_0 = sd.get_point(600,5)
- branch(point=point_0,angle=75,length=200)
- sd.pause()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement