MCPcopy Index your code
hub / github.com/geekcomputers/Python / __init__

Method __init__

turtle_shapes_made.py:5–8  ·  view source on GitHub ↗
(self, color, pensize)

Source from the content-addressed store, hash-verified

3
4class ShapeDrawer:
5 def __init__(self, color, pensize):
6 self.turtle = turtle.Turtle()
7 self.turtle.color(color)
8 self.turtle.pensize(pensize)
9
10 def draw_rectangle(self, width, height):
11 for _ in range(2):

Callers

nothing calls this directly

Calls 1

colorMethod · 0.80

Tested by

no test coverage detected