2.0 ICM.
- Astro Lee

- Sep 27, 2023
- 1 min read
Ah, a late blog post but wanted to leave something for last week's sketch.
Which is right here:
So last week, I got inspired by Mimi's sketch demo with the elipses and started playing with them using MouseX and MouseY. Then I landed on the mouse cursor function where I could change the cursor of the mouse. Using a conditional statement, I changed the cursor of the mouse to a 'waiting' version once clicked. But the issue that came up was that once the mouse was clicked and the cursor changed, I couldn't get the cursor to change back to default. It was same with the glitching effect, where I wanted to toggle back to the default mode / visual once clicked, but couldn't figure out the math behind it to make that work.
So in class, we learned about boolean, and I realized what I was missing. Storing of the past information. SO for that purpose I needed to use Boolean, and use that to toggle back in between the default and glitch mode (as I like to call it).
I'm going to move on from this sketch, but I'll know for sure that next time when I need to toggle something, I'll need to utilize Boolean. Learned a lot :)



Comments