Skip to content

Weird thing in Processing 3 #810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sharmadhruv741 opened this issue May 10, 2020 · 1 comment
Closed

Weird thing in Processing 3 #810

sharmadhruv741 opened this issue May 10, 2020 · 1 comment

Comments

@sharmadhruv741
Copy link

I was checking out the tutorials on Processing's website when I noticed something weird. In the 'interactivity' page, there's this one example code under Mouse Events where the user can increase the amount of whiteness of the background whenever he clicks mouse. I kept on clicking until it became white and after that it weirdly turned to black again. The weirder thing was that when I kept on clicking after that, it was turning more bluer until it became completely blue after which it turned to black again. This keeps on recurring as long as I keep clicking the mouse.

https://processing.org/tutorials/interactivity/

Is this normal? I don't know. I'm pretty new to programming and Processing. So, just thought of bringing this to the attention of the person concerned.

@REAS
Copy link
Member

REAS commented Jun 2, 2020

Yes, that's just how the numbers work with integers and fill() and stroke(). I agree, it is weird. It might be a good question for the Processing Discourse: https://discourse.processing.org/

@REAS REAS closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants