Skip to content

Instantly share code, notes, and snippets.

@cbhyphen
cbhyphen / draw_koch_snowflake.py
Last active April 6, 2016 16:54
koch-snowflake-turtle
#!/usr/bin/python
import turtle
def draw_koch_fractal(turtle, level, length):
if level == 0:
turtle.forward(length)
@cbhyphen
cbhyphen / draw_cesaro_fractal.py
Last active February 15, 2022 05:27
cesaro-fractal-turtle
#!/usr/bin/python
import turtle
def draw_cesaro_line(turtle, level, length):
if level == 0:
turtle.forward(length)
@cbhyphen
cbhyphen / draw_tunnel.py
Last active April 6, 2016 16:34
pyschedelic-turtle
#!/usr/bin/python
import turtle, math, colorsys
def draw_tunnel(some_turtle):
distance = 50.0
n = 200
for i in range(n):