I am trying to create a compound shape. What I want now is to change the outline size of this new compound shape.
I have made the shape like this:
import turtle
points_1 = [...] # list of points
points_2 = [...] # list of points
shape = turtle.Shape('compound')
poly = turtle.Turtle()
poly.begin_poly()
for point_list in [points_1, points_2]:
poly.goto(point_list [0][0], point_list[0][1])
poly.begin_poly()
for point in point_list[1:]:
poly.goto(point[0], point[1])
poly.goto(point_list[0][0], point_list[0][1])
poly.end_poly()
shape.addcomponent(poly.get_poly(), '', 'darkgreen')
screen = turtle.Screen()
screen.register_shape('my_turtle', shape)
screen.clearscreen()
my_shape = turtle.Turtle()
my_shape.shape('my_turtle')
turtle.done()
I tried to change the pensize
of the poly and my_shape, but none of them worked.
How can I achieve this with a compound shape of multiple polygons?