@JonathanBrazier You use keyboard bindings. For Turtle, you can say

wn.listen()

onkey(function, "p")

or

wn.listen()

onkeypress(function, "p")

if it's a later version of python.

@benji10 (21)

@JonathanBrazier You use keyboard bindings. For Turtle, you can say

wn.listen()

onkey(function, "p")

or

wn.listen()

onkeypress(function, "p")

if it's a later version of python.

@JosiahKnisely I've also made an updated version of this. It's in JavaScript so runs much faster (up to 15 ish dimensions depending on your computer). Here it is:

https://wallpaper.benji10.repl.co/

Double and triple click to raise / lower dimension.

@JosiahKnisely Nope, it's literally a circle at this point.

posted to Announcements by TheDrone7

Oh wow, I didn't even know this was a thing until I got mentioned. Thanks so much!! 😊

@mwilki7

Thanks! It's not perfect, but I'm hoping I can make it a bit better. I've got some ideas I'm hoping to be able to implement to make this perfect.

@DynamicSquid This doesn't happen in our dimension because there isn't enough space, but in higher dimensions, there is more space, meaning there could be an axis that is perpendicular to all the other axes.

and I forgot. you can also press p to toggle 3d perspective.

Here is my python one if anyone's interested.

https://repl.it/talk/share/any-dimensional-cube/36289

@JosiahKnisely yeah

@StudentFires No, it's not.

@CodingCactus good that my 5D cube looks like that one! I didn't actually know what a 5D cube would look like.

@StudentFires Thanks!

@JonathanBrazier There's also a bunch of screen events you can use here: https://docs.python.org/3.1/library/turtle.html#turtle.listen

@DannyIsCoding Thanks!

@JosiahKnisely thanks!

@JosiahKnisely I thought repl.it couldn't handle more than 5

@JosiahKnisely wait, you can see a 10D cube?!

@CodingCactus cool!

@CodingCactus i'm pretty sure this is all theoretical. But this is visualising what it would look like. I can't really explain, so i think the best bet is to look it up online.

@CodingCactus it's just visualising what a 5D cube would look like.

@DynamicSquid 4D is short for the 4th dimension. It's a (theoretical) axis that is perpendicular to all 3 axes of the 3rd dimension (our dimension).