Infinite loop game design

I want to create something like the infinite loop game by le http://lekevicius.com/projects/infinite-loop/ I would really like to learn it so I could probably do something for my school project. Anyone with any ideas or help is more than welcome to share. I don’t know where to begin or how to for that matter.

He mentions that the designs are algorithmically built so you could start by researching the different types that can be used & project it onto a plane that is then tiled so it breaks into segments & then randomly rotate each tile 90°, 180°, or 270°.