<br> import random,time,turtle<br>bai = turtle.Turtle()<br>bai.pendown<br>bai.speed(10)<br>bai.tracer(300)<br>bai.hideturtle()<br>for i in range (1000):<br> for i in range(4):<br> for i in range (40):<br> bai.forward(50)<br> bai.left(100)<br> r = random.randint(0,255)<br> g = random.randint(0,255)<br> b = random.randint(0,255)<br> bai.pencolor((r,g,b))<br> for i in range(4):<br> bai.forward(10)<br> bai.left(90)<br> time.sleep(0.1)<br> bai.penup<br> bai.forward(100)<br> bai.pendown
<br><br> import turtle<br>import time<br>import random<br>bob = turtle.Turtle()<br>bob.tracer(300)<br>bob.pendown()<br>bob.hideturtle()<br>for i in range (20):<br> for i in range(200):<br> bob.forward(158)<br> bob.left(200)<br> bob.right(1)<br> r = random.randint(1,255)<br> g = random.randint(1,255)<br> b = random.randint(1,255)<br> bob.pencolor((r,g,b))<br> time.sleep(0.1) <br>