|
|
(21 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| First experiences with the turtle! (Thank you very much Tamas and Lucia for technical support)
| | [[/Turtle | Turtle]] |
|
| |
|
| <syntaxhighlight lang="python">
| | [[/Fluffying | She was baking a NBA player]] |
| #include <iostream>
| |
| import turtle
| |
| import random
| |
|
| |
|
| def Poly(n,x):
| | [[/Raw | RAW Image]] |
| angle = 360/n
| |
| for i in range(n):
| |
| turtle.forward(x)
| |
| turtle.left(angle)
| |
|
| |
|
| def makeFlower(p):
| | [[/Rawgif | Raw GIF]] |
| for i in range(12):
| |
| print Poly(9,p)
| |
| turtle.left(30)
| |
|
| |
|
| while(1):
| | [[Generating_Slash_Fiction_from_BBC_News_RSS_Feeds | Generating Slash Fiction from BBC News' RSS Feeds]] |
| print makeFlower(random.randint(40,100))
| |
| turtle.color(random.randint(0,1),random.randint(0,1),random.randint(0,1))
| |
| | |
| </syntaxhighlight>
| |
| | |
| | |
| [[File:Networked2.png]] | |
Latest revision as of 22:32, 8 December 2013