Homework #3
https://editor.p5js.org/kmccloskey2/sketches/azOhEfAi2
In my project I attempted to use the random function, conditionals, and Boolean variables. I was trying to think of ideas of something to turn on and I immediately thought about lights and thought it would be cool if I could make random colorful lights on a Christmas tree. I have a box labeled "lights" so the user knows what they are clicking on. When the user clicks direct in the box, the lights turn on and off. My work is different than typical buttons that can be found on website because the box itself is not interactive. For example, when you usually click on a button, the button either changes color or size to indicate to the user that it is pressed. This is something I would add if I could figure that out in the future. Besides that, I think using the random feature for the lights is interesting because it is not just still dots and looks as if it is sparkling.
Comments
Post a Comment