Random Squares

I recreated “Random Squares” by Bill Kolomyjec. You can see a picture of my creation below. The hardest part of this for me was getting it so there was only one cell that displayed a single square. I try to avoid while loops at all cost, and I had to mess around with while loops to get it working. Getting the squares to embed in each other was a little tricky as well. You can find my code here. Pardon the terrible variable names.

final

 

 

Self Portrait and Drawing Machine

In this project, I made a simple drawing machine. In this machine, main icon is two red circles connected by a line. This icon can turn by itself, the rotating center is the middle point of the line. When you move the mouse on the screen, the icon will move with the mouse and continually rotate. In addition, the color of background will turn lighter as time goes on. Continue reading “Self Portrait and Drawing Machine”