Share your repls and programming experiences

← Back to all posts
Red Triangle In A Black Background
Siddhartha123 (2)

Here's my code, people! import turtle

tess = turtle.Turtle
wn= turtle.Screen
wn = turtle.Screen()

wn.bgcolor("black")

tess = turtle.Turtle()
tess.shape("triangle")
tess.color("red")
tess.left(90)

def increaseSize():
size = tess.turtlesize()
increase = tuple([2 * num for num in size])
tess.turtlesize(*increase)

wn.onkey(increaseSize, "x")
wn.listen()

Comments
hotnewtop
joshhies (218)

first thing first, no need to copy past you code cause we already see you code in repl if you link it to this post. Second thing, use markdown if you do so.

This is pretty cool, not that interesting tho.