Just a little experiment placing rotated rectangles on an i by j grid. Rotation and color of the rectangle fill is influenced to the location (i, j) on the grid.

Code available in the link below. Enjoy!

p5.js Web Editor
A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.