Deadline: Wednesday, 28 February, 9:00.
- The function
draw_star() that we build in the class has 3 inputs:
angle, and draws always around the center of the window. Please modify it to work with two more inputs, named
y, that indicate the center of the star. Modify also the functions
draw_circle() to also handle
y to choose the position.
- Use these functions (and others) to draw a stick man like the one you did in Homework 1.
- (Optional) We propose that
initial_angle must be
size must be
2*R*sin(angle*pi/360). Why these values?