Skip to content
Google logo
Profile icon
LeonardoVillalo

A program that draws the Google logo using the p5.js library.

You are viewing a single comment. View All
Profile icon
kirbybros45

from turtle import *

right(90)
bgcolor('black')
pos = [(-40, 0), (40, 0)]
for x, y in pos:
up()
goto(x, y)
down()
fillcolor(a 'red')
begin_fill()
for i in range(2):
forward(200)
left(90)
forward(40)
left(90)
end_fill()
up()
goto(-40, 0)
down()
left(22)
begin_fill()
for i in range(2):
forward(217)
left(68)
forward(40)
left(112)
end_fill()