MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / filledInHilbert

Function filledInHilbert

src/gamesbyexample/hilbertcurve.py:51–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 turtle.right(angle)
50
51def filledInHilbert():
52 turtle.begin_fill()
53 hilbertCurve(LEVEL, ANGLE) # draw first quadrant
54 turtle.forward(SIZE)
55
56 hilbertCurve(LEVEL, ANGLE) # draw second quadrant
57 turtle.left(ANGLE)
58 turtle.forward(SIZE)
59 turtle.left(ANGLE)
60
61 hilbertCurve(LEVEL, ANGLE) # draw third quadrant
62 turtle.forward(SIZE)
63
64 hilbertCurve(LEVEL, ANGLE) # draw fourth quadrant
65 turtle.left(ANGLE)
66 turtle.forward(SIZE)
67 turtle.left(ANGLE)
68 turtle.end_fill()
69
70
71try:

Callers 1

mainFunction · 0.85

Calls 1

hilbertCurveFunction · 0.85

Tested by

no test coverage detected