top of page

Week 2: Patterns

Writer: Alexis SandersAlexis Sanders

I wasn't sure what I wanted to create at first so I started thinking about the patterns that I see daily. One thing that I noticed was how many patterns we see within shapes and colors daily. This lead me to creating a sort of kaleidoscope pattern for this project. I started by creating a loop for my shapes and coloring them in a way that was reactive to the user. I wanted to make it so each circle would be a different color, more like a real kaleidoscope, but I couldn't figure out the code for that. I was able to repurpose a function from Carrie's class where I was able to change the color to be more of a gradient and still have it dependent on where the user was. I then tried to make it so the colors would change if the user clicked on the page, but the mouseClicked() function wouldn't work properly for me. I also had trouble figuring out how to keep my gradient with the new randomize function I had. I tried creating a new color in the mouseClicked() function and calling it in the setup function, but that made the entire page one color. I couldn't figure out how to keep the same gradient pattern that I had. I was thinking about trying multiple random and fill functions, but the code ended up breaking and freezing more often so I figured I should move away from that for now and try again later.


Here is a link to my code.













Comments


bottom of page