r/processing • u/tybaltofsiwa • Oct 03 '23
Homework hint request Need Help with boolean
Hey guys i just started using proccesing and i neeed help changing the color of a yellow square to blue using the press of the mouse and for it to then turn back to yellow wen i press the mouse again and vice versa, using a boolean function
0
Upvotes
•
u/MandyBrigwell Moderator Oct 04 '23
Just drawing attention to rule 1 as a response to concerns from various denizens of r/processing—thank you for the heads-up!
In general, when posting, if it's a homework assignment it's best to just be up front about it. People will still help, but they prefer an honest approach…
10
u/forgotmyusernamedamm Oct 03 '23
That sounds like a class assignment. We will still help, but we're not doing it for you. What have you tried so far? We don't know what you don't know.
1
u/tybaltofsiwa Oct 03 '23
I made a bsic program with a yellow rectangle and the fill is stored at the top of the programme in a vsriable named x then i placed void mouspressed and the changed thr value of the color varoable to purple when i run the programme and i press the screen the color changes to purple but i want it to change back to yellow preferably using a boolean for non asighment related reasons
-2
u/tybaltofsiwa Oct 03 '23
Im 95% done my personal project just this last hicup