Hello friends, in this article, I am presenting you with a simple way to create an emoji. We are creating a Side Look Emoji using python turtle.
This is very easy to code and create. First, we have imported the turtle and then we have initialized it.
Then we created it first eye which is looking our left side using circle() function in python turtle, and in the same way we have created the second eye. At last, we just draw it’s lips(mouth) by drawing a line. To draw that line, we first changed the postion of our pen using goto() function and then just changed it’s size to 10 using pensize() function.
This is very easy and simple to create Side Look Emoji. We have also used some other function like color(), begin_fill(), end_fill(), etc. These all are easy to understand because the names of these functions tell the purpose of them themselves.
Now, let’s see the code.
Source Code
import turtle my_pen = turtle.Turtle() my_pen.color("#ffdd00") my_pen.begin_fill() my_pen.circle(100) my_pen.fillcolor("#ffdd00") my_pen.end_fill() my_pen.home() my_pen.goto(-40, 100) my_pen.color("#555555") my_pen.begin_fill() my_pen.circle(15) my_pen.color("#ffffff") my_pen.end_fill() my_pen.penup() my_pen.goto(-48, 110) my_pen.pendown() my_pen.color("Black") my_pen.begin_fill() my_pen.circle(5) my_pen.end_fill() my_pen.penup() my_pen.goto(40, 100) my_pen.pendown() my_pen.color("#555555") my_pen.begin_fill() my_pen.circle(15) my_pen.color("#ffffff") my_pen.end_fill() my_pen.penup() my_pen.goto(32, 110) my_pen.pendown() my_pen.color("Black") my_pen.begin_fill() my_pen.circle(5) my_pen.end_fill() my_pen.penup() my_pen.goto(-20, 50) my_pen.pendown() my_pen.pensize(10) my_pen.forward(40) turtle.done()
Output:
Also read:
- Simple Code to compare Speed of Python, Java, and C++?
- Falling Stars Animation on Python.Hub October 2024
- Most Underrated Database Trick | Life-Saving SQL Command
- Python List Methods
- Top 5 Free HTML Resume Templates in 2024 | With Source Code
- How to See Connected Wi-Fi Passwords in Windows?
- 2023 Merry Christmas using Python Turtle
- 23 AI Tools You Won’t Believe are Free
- Python 3.12.1 is Now Available
- Best Deepfake Apps and Websites You Can Try for Fun
- Amazon launched free Prompt Engineering course: Enroll Now
- 10 GitHub Repositories to Master Machine Learning
- Hello World in 35 Programming Languages
- How to Scrape Data From Any Website with Python?
- Become Job Ready With Free Harvard Computer Science course: Enroll Now
- Free Python Certification course from Alison: Good for Resume
- Download 1000+ Projects, All B.Tech & Programming Notes, Job, Resume & Interview Guide, and More – Get Your Ultimate Programming Bundle!
- Udacity Giving Free Python Course: Here is how to Enroll
- Love Babbar’s Income Revealed
- Top 5 Websites to Learn Programming in 2024