#USvsHate + Computer Science + #TeamTree
For this #USvsHate submission, I quote a commonly-used Mexican proverb,
“They tried to bury us. They didn’t know we were seeds.”
The proverb itself has an origin dating back to the Greek philosopher and poet, Dinos Christianopoulos. I use this tree as a symbol for what the seeds can grow into.
Trees, like humans, are tough and resilient in themselves. And despite many hurdles and obstacles, both of these living things choose to rise up in defiance of being buried.
Resilence is also a theme in making the message itself. There were many mediums I could’ve used to convey this message, but I chose to code. One of the basic fundamentals of coding and computer science, like any other subject, is learning to never give up. For this activity, I decided to push myself to learn how to program fractal trees using Python’s Turtle feature.
Most importantly, despite many hateful acts (very recent ones being anti-Asian incidents), the message intends to bring inspiration for us to persist in the world tainted by social and environmental injustices.
A special thank you to all the Youtube coders for #TeamTree. I learned a lot from your videos!
For more information on #USvsHate, check out http://usvshate.org/.
Python Code here for reference:
import turtle, time
turtle.setup( width = 600, height = 1000, startx = None, starty = None)
turtle.goto(0,-100)
hr=turtle.Turtle()
turtle.position()
(0.00,-100)
hr.left(90)
hr.speed(300)
def tree(i):
if i<11:
return
else:
hr.forward(i)
hr.left(30)
tree(3*i/4)
hr.right(60)
tree(3*i/4)
hr.left(30)
hr.backward(i)
tree(100)
turtle.clear()
turtle.ht()
turtle.penup()
turtle.goto(0,-150)
turtle.color('deep pink')
style = ('Courier', 30, 'italic')
turtle.write("They tried to bury us.", font=style, align='center')
time.sleep(2)
turtle.clear()
turtle.write("They didn't know we were seeds.", font=style, align='center')
time.sleep(2)
turtle.clear()
turtle.write("#USvsHate", font=style, align='center')
turtle.pendown()
turtle.done()