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

Typo on mouseWheel sample code #673

Open
joaofnunes opened this issue Jan 6, 2025 · 0 comments
Open

Typo on mouseWheel sample code #673

joaofnunes opened this issue Jan 6, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@joaofnunes
Copy link

Most appropriate sections of the p5.js website?

Examples

What is your operating system?

Mac OS

Web browser and version

Brave: 1.73.104

Actual Behavior

In the first example of the mouseWheel function, the code is intended to draw a circle in the center of the canvas and increase the circle's size when the user scrolls the mouse wheel. However, the code contains a typo, as it mistakenly changes the circle's X coordinate instead.

// Draw the circle
circle(circleSize, 50, 50);

Expected Behavior

// Draw the circle
circle(50, 50, circleSize);

Steps to reproduce

No response

Would you like to work on the issue?

yes

@joaofnunes joaofnunes added the Bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant