Visual Studio Code Logo

 



import turtle as tt
s=tt.Turtle()
tt.title("Visual_Studio_Code")
print("   Set color mode")
print("        1.Original")
print("        2.Black and White")
x=float(input("      Your option : "))
while (x !=2)and(x !=1):
    if x==2:
        tt.pencolor("white")
    if x==1:
        tt.pencolor('#000000')
    else:
        print("Invalid option")
s.pensize(3)
s.penup()
s.bk(225)
s.rt(140)
s.begin_fill()
if x==1:
    s.fillcolor("#1673B0")
else:
    s.fillcolor("#ffffff")
s.pendown()
s.fd(100)
s.circle(10,85)
s.fd(50)
s.circle(10,85)
s.fd(500)
s.circle(10,60)
s.fd(100)
s.fd(37)
s.circle(10,115)
s.circle(10,5)
s.circle(10,5)
s.circle(10,1.3)
s.fd(480)
s.end_fill()
s.bk(50)
s.rt(80)
if x==1:
    s.fillcolor("#2D91D5")
else:
    s.fillcolor("#ffffff")
s.begin_fill()
s.fd(150)
s.circle(-10,85)
s.fd(50)
s.circle(-10,85)
s.fd(505)
s.circle(-10,57)
s.fd(100)
s.fd(37)
s.circle(-10,128.3)
s.fd(480)
s.end_fill()
if x==1:
    s.fillcolor("#4FB1F3")
else:
    s.fillcolor("#ffffff")
s.begin_fill()
s.bk(480)
s.circle(-10,-128.3)
s.bk(513.5)
s.circle(-10,-115)
s.fd(10)
s.circle(-10,60)
s.fd(150)
s.circle(-10,54)
s.fd(352)
s.circle(-10,54)
s.fd(151)
s.circle(-10,70)
s.fd(18)
s.end_fill()
tt.bgcolor("#000000")
tt.done()

Comments