Created
August 29, 2014 23:38
-
-
Save octaflop/885ad1a62ef8c252e954 to your computer and use it in GitHub Desktop.
zturtle_demo.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import turtle | |
import random | |
turtle.colormode(255) | |
for i in range(1, 125): | |
setting = turtle.Screen() | |
setting.bgcolor('#010101') | |
turtle.right(10 * random.randint(1, 5)) | |
turtle.forward(i*2) | |
r = random.randint(0, 255) | |
g = random.randint(0, 255) | |
b = random.randint(0, 255) | |
turtle.pencolor(r, g, b) | |
turtle.pensize(i*0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment