Created
April 1, 2025 16:45
-
-
Save ChicagoDev/299a349d78aefdbdf53b2355e178dd01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| pen = turtle.Turtle() | |
| # Head (Comment) | |
| pen.penup() | |
| pen.goto(0, -100) | |
| pen.color("#f2d73f") | |
| pen.begin_fill() | |
| pen.circle(100) | |
| pen.end_fill() | |
| #Left Eye | |
| pen.penup() | |
| pen.goto(-40, 0) | |
| pen.color("#4911f0") | |
| pen.begin_fill() | |
| pen.circle(20) | |
| pen.end_fill() | |
| #Right Eye | |
| pen.penup() | |
| pen.goto(40, 0) | |
| pen.color("red") | |
| pen.begin_fill() | |
| pen.circle(20) | |
| pen.end_fill() | |
| # Mouth | |
| pen.penup() | |
| pen.goto(-40, -35) | |
| pen.color("black") | |
| pen.begin_fill() | |
| pen.seth(-90) | |
| pen.circle(40, 180) | |
| pen.end_fill() | |
| pen.penup() | |
| pen.goto(-60, 80) | |
| pen.pendown() | |
| pen.pencolor("orange") | |
| pen.begin_fill() | |
| pen.seth(60) | |
| pen.forward(120) | |
| pen.right(120) | |
| pen.forward(120) | |
| pen.right(120) | |
| pen.forward(120) | |
| pen.end_fill() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment