any dimensional cube
benji10 (22)

The program will create a cube in any dimensions and display it. will only allow up to 5 dimensions though. Press "p" to toggle perspective which could change the whole view. Press "space" to only show verticies. My second repl. Have fun!

You are viewing a single comment. View All
JonathanBrazier (11)

How did you detect when p was pressed?

benji10 (22)

@JonathanBrazier You use keyboard bindings. For Turtle, you can say
onkey(function, "p")


onkeypress(function, "p")

if it's a later version of python.