
# https://www.globalsino.com/ICs/
# Draw smiling face emoji

import turtle
 
# turtle object
pen = turtle.Turtle()
 
# Creation of eye
def eye(col, rad):
    pen.down()
    pen.fillcolor(col)
    pen.begin_fill()
    pen.circle(rad)
    pen.end_fill()
    pen.up()
 
# Face
pen.fillcolor('lightgreen')
pen.begin_fill()
pen.circle(100)
pen.end_fill()
pen.up()
 
# Eyes
pen.goto(-40, 120)
eye('white', 15)
pen.goto(-37, 125)
eye('black', 5)
pen.goto(40, 120)
eye('white', 15)
pen.goto(40, 125)
eye('black', 5)
 
# Nose
pen.goto(0, 75)
eye('black', 8)
 
# Mouth
pen.goto(-40, 85)
pen.down()
pen.right(90)
pen.circle(40, 180)
pen.up()
 
# Tongue
pen.goto(-10, 45)
pen.down()
pen.right(180)
pen.fillcolor('yellow')
pen.begin_fill()
pen.circle(10, 180)
pen.end_fill()
pen.hideturtle()
