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

Mouse Control #9

Open
thatvideoshopguy opened this issue Mar 25, 2023 · 0 comments
Open

Mouse Control #9

thatvideoshopguy opened this issue Mar 25, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@thatvideoshopguy
Copy link
Owner

Feature description

Currently, the spinner's position, size, and angle are controlled by the flick() function that is triggered by pressing the space bar. We want to add a new feature that allows users to control the spinner's position, size, and angle using the mouse. This can be achieved by implementing mouse event handling using the onclick(), ondrag(), and onrelease() functions from the turtle module.

Possible solution

  1. Add new functions that handle mouse events onclick(), ondrag(), and onrelease().
  2. Update these functions to calculate the new position, size, and angle of the spinner based on the mouse events.
  3. Update the spinner() function to use the new position, size, and angle of the spinner.
  4. Add event listeners for mouse events that trigger the new functions.

Additional context

Adding mouse control to the spinner will provide a more interactive user experience. It will allow users to have more control over the spinner's movement and make the spinner more fun to play with. We can provide users with some guidance on how to use the mouse to control the spinner, like a tooltip or a short tutorial.

@thatvideoshopguy thatvideoshopguy added the enhancement New feature or request label Mar 25, 2023
@thatvideoshopguy thatvideoshopguy self-assigned this Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant