Last active
February 12, 2023 14:27
-
-
Save blaketyro/52498c679bd9d4e7dcbe85f6fd348978 to your computer and use it in GitHub Desktop.
Flower Profile Image
This file contains 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
# Python Turtle graphics flower - inspired by https://www.artstation.com/artwork/e0mdxw | |
# Output: https://user-images.githubusercontent.com/121282551/218316870-199223d0-843d-42f2-8934-e37f102a3eb7.png | |
import turtle as t | |
s = t.Screen() | |
s.setup(600, 600) | |
t.tracer(0) | |
t.hideturtle() | |
t.bgcolor('white') | |
t.color('red') | |
t.fillcolor('pink') | |
t.begin_fill() | |
t.width(3) | |
t.right(180) | |
for a in range(180): | |
for b in range(4): | |
t.fd(b*a**1.1/10) | |
t.right(90) | |
t.right(23) | |
t.end_fill() | |
t.done() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment