Shinchan using python turtle


 


here is the source code 👇👇👇👇

please do share this post with your coder friends



import turtle

shinwin=turtle.Screen()
shin=turtle.Turtle()
shin.begin_fill()
shin.color("peach puff")
shin.shape("turtle")
shin.penup()
shin.speed(5)
shin.setposition(0, 50)
shin.pendown()
shin.width(2)
#face
shin.right(90)
shin.forward(70)
shin.right(90)
shin.circle(150,180)
shin.forward(250)
shin.left(39)
shin.forward(170)
shin.left(-90)
shin.circle(50,170)
shin.right(30)
shin.circle(500,10)
shin.right(-35)
shin.circle(50,150)
shin.right(209)
shin.circle(200, 90)
shin.circle(200,80)
shin.end_fill()
#hair
shin.color("black")
shin.setposition(0,50)
shin.begin_fill()
shin.color("black")
shin.right(0)
shin.circle(220, -159)
shin.right(-110)
shin.circle(60,45)
shin.right(155)
shin.circle(200,80)
shin.circle(200,80)
shin.end_fill()
#mouth
shin.penup()
shin.setposition(20,-220)
shin.pendown()
shin.begin_fill()
shin.color('darkred')
shin.circle(90,90)
shin.circle(70,90)
shin.circle(90,90)
shin.circle(70,90)
shin.end_fill()
#eyes
shin.penup()
shin.setposition(50,0)
shin.pendown()
shin.begin_fill()
shin.color("black")
shin.circle(50)
shin.end_fill()
shin.setposition(70,-20)
shin.begin_fill()
shin.color("white")
shin.circle(20)
shin.end_fill()
shin.penup()
shin.setposition(200,0)
shin.pendown()
shin.begin_fill()
shin.color("black")
shin.circle(50)
shin.end_fill()
shin.setposition(220,-20)
shin.begin_fill()
shin.color("white")
shin.circle(20)
shin.end_fill()
shin.penup()
shin.setposition(455,-65)
shin.pendown()
shin.begin_fill()
shin.color("peach puff")
shin.right(110)
shin.circle(100,-90)
shin.end_fill()
#eyebrows
shin.penup()
shin.setposition(20,0)
shin.pendown()
shin.begin_fill()
shin.color("black")
shin.right(130)
shin.circle(100,-90)
shin.circle(50,-120)
shin.circle(20,-120)
shin.right(189)
shin.circle(30,90)
shin.circle(80,40)
shin.right(180)
shin.circle(20,-92)
shin.end_fill()
#ear_correction
shin.penup()
shin.setposition(170,20)
shin.pendown()
shin.begin_fill()
shin.color("black")
shin.right(299)
shin.right(130)
shin.circle(100,-90)
shin.circle(50,-120)
shin.circle(20,-120)
shin.right(189)
shin.circle(30,90)
shin.circle(80,40)
shin.right(180)
shin.circle(20,-92)
shin.end_fill()
shin.hideturtle()

Comments

Popular Posts