Wolfram Logo with Turtle
by G.G.Otto, May 4, 2020, 4:03 AM
So I made the Wolfram Alpha logo. It wasn't too hard, I just had to make sure I got the angles correct, and then it was one big loop.
Code
Now I'm going to think up something original.
Code
import turtle import sys sys.setExecutionLimit(60000) def square(t,x,y,size): t.color('red','red') t.penup() t.goto(x,y-size/2) t.begin_fill() for i in range(4): t.fd(size/2-size/35) t.circle(size/35,90) t.fd(size/2-size/35) t.end_fill() def middle(t,x,y,size): t.color('white') t.pensize(size/25) t.penup() t.goto(x,y) t.pendown() heading = 18 size2 = size*11/72 for i in range(5): t.penup() t.goto(x,y) t.pendown() heading += 72 t.setheading(heading) for i in range(3): t.fd(size2) t.left(36) t.left(72) for i in range(3): t.fd(size2) t.left(36) t.setheading(heading) t.fd(size2) t.left(72) t.fd(size2) t.right(36) t.fd(size2) t.bk(size2) t.right(36) t.bk(size2) t.left(36) t.fd(size2) t.left(72) t.fd(size2) t.left(108) t.fd(size2) t.left(72) t.fd(size2) def wolfram(t,wn,x,y,size): wn.bgcolor('black') square(t,x,y,size) middle(t,x,y,size) t.hideturtle() wolfram(turtle.Turtle(),turtle.Screen(),0,0,200)
Now I'm going to think up something original.
