Google and Google chrome logo in Python code|| Programmer's Space

Published: 05 August 2021
on channel: Programmer's Space
52
2

here is the source code:
google logo code :
import turtle


programmersspace = turtle.Turtle()
turtle.bgcolor("black")
programmersspace.color("#4285F4","#4285F4")
programmersspace.pensize(1)
#programmersspace.speed(10)

[ google color codes ]
red = #DB4437
blue = #4285F4
green = #0F9D58
yellow = #F4B400

def google():
programmersspace.forward(120)
programmersspace.right(90)
programmersspace.circle(-150,50)
programmersspace.color("#0F9D58")
programmersspace.circle(-150,100)
programmersspace.color("#F4B400")
programmersspace.circle(-150,60)
programmersspace.color("#DB4437","#DB4437")
programmersspace.begin_fill()
programmersspace.circle(-150,100)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.right(90)
programmersspace.circle(100,100)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.end_fill()
programmersspace.begin_fill()
programmersspace.color("#F4B400","#F4B400")
programmersspace.right(180)
programmersspace.forward(50)
programmersspace.right(90)
programmersspace.circle(100,60)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.right(90)
programmersspace.circle(-150,60)
programmersspace.end_fill()
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.right(90)
programmersspace.circle(100,60)
programmersspace.color("#0F9D58","#0F9D58")
programmersspace.begin_fill()
programmersspace.circle(100,100)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.right(90)
programmersspace.circle(-150,100)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.end_fill()
programmersspace.right(90)
programmersspace.circle(100,100)
programmersspace.color("#4285F4","#4285F4")
programmersspace.begin_fill()
programmersspace.circle(100,25)
programmersspace.left(115)
programmersspace.forward(65)
programmersspace.right(90)
programmersspace.forward(42)
programmersspace.right(90)
programmersspace.forward(124)
programmersspace.right(90)
programmersspace.circle(-150,50)
programmersspace.right(90)
programmersspace.forward(50)
programmersspace.end_fill()

google()
programmersspace.hideturtle()
turtle.done()


google chrome code :
from turtle import *

from time import sleep
colormode(255)
red=(234, 68, 53); green=(0, 172, 71); yellow=(255, 186, 0);
blue=(66, 133, 244)
r=120
seth(-150)
up()
#-------------RED -------------
color(red)
begin_fill()
fd(r)
down()
right(90)
circle(-r, 120)
fd(r*3**.5)
left(120)
circle(2*r, 120)
left(60)
fd(r*3**.5)
end_fill()

#-------------Green -------------

left(180)
color(green)
begin_fill()
fd(r*3**.5)
left(120)
circle(2*r, 120)
left(60)
fd(r*3**.5)
left(180)
circle(-r, 120)
end_fill()

#-------------Yellow -------------

left(180)
circle(r,120)
color(yellow)
begin_fill()
circle(r, 120)
right(180)
fd(r*3**.5)
right(60)
circle(-2*r, 120)
right(120)
fd(r*3**.5)
end_fill()

#-------------Blue Circle-------------

up()
left(98)
fd(15)
seth(60)
color(blue)
down()
begin_fill()
circle(distance(0,0))
end_fill()
ht()

done()

plz like share subscribe to Programmer's Space
#coding #python #programming #google #chrome #like #share #subscribe #java #c++ #turtle #graphiccode#etc


On this page of the site you can watch the video online Google and Google chrome logo in Python code|| Programmer's Space with a duration of hours minute second in good quality, which was uploaded by the user Programmer's Space 05 August 2021, share the link with friends and acquaintances, this video has already been watched 52 times on youtube and it was liked by 2 viewers. Enjoy your viewing!