Skip to content
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

changed mousePressed reference description issue#6045 and variable name of example #6059

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

yogitheboss
Copy link
Contributor

Resolves #6045

Changes:

Screenshots of the change:
image

@yogitheboss
Copy link
Contributor Author

@limzykenneth can you please review this pr

Comment on lines 617 to 627
* let color_value = 0;
* function draw() {
* fill(value);
* fill(color_value);
* rect(25, 25, 50, 50);
* describe('black 50-by-50 rect turns white with mouse click/press.');
* }
* function mousePressed() {
* if (value === 0) {
* value = 255;
* color_value = 255;
* } else {
* value = 0;
* color_value = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of color_value can we use colorValue? Just to keep consistent code style.

@yogitheboss
Copy link
Contributor Author

I have made the necessary changes @limzykenneth

@yogitheboss
Copy link
Contributor Author

@limzykenneth I have made the necessary changes. Can you merge the pr

@limzykenneth limzykenneth merged commit ab3e2ad into processing:main Mar 29, 2023
@limzykenneth
Copy link
Member

Looks good. Thanks!

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

Successfully merging this pull request may close these issues.

Misleading description of mousePressed() reference
2 participants