Share your repls and programming experiences

← Back to all posts
A 3 Dimensional Die!
liesbot

I made a die using webgl, I couldn't make it have the dots like a regular die so I just colored each side. When you click L, it locks your cursor and allows you to move your cursor around to spin the die randomly. When you click L again, your cursor is freed, and the die will slowly roll until it stops on any color. Whatever color is in the middle of the white circle is the color the die rolled on. There is also a lighting system that I added to make it feel more 3d.

I'm not the best at making websites so the text doesn't really scale well, it only really works well in full screen.

Voters
liesbot