MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / draw_vicsek_fractal

Function draw_vicsek_fractal

fractals/vicsek.py:57–66  ·  view source on GitHub ↗

Draw the Vicsek fractal at the specified position, with the specified length and depth.

(x: float, y: float, length: float, depth: float, color="blue")

Source from the content-addressed store, hash-verified

55
56
57def draw_vicsek_fractal(x: float, y: float, length: float, depth: float, color="blue"):
58 """
59 Draw the Vicsek fractal at the specified position, with the specified
60 length and depth.
61 """
62 turtle.speed(0)
63 turtle.hideturtle()
64 set_color(color)
65 draw_fractal_recursive(x, y, length, depth)
66 turtle.Screen().update()
67
68
69def main():

Callers 1

mainFunction · 0.85

Calls 3

set_colorFunction · 0.85
draw_fractal_recursiveFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected