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

Add Initial Drawing States #1

Open
mohamedAdhamc opened this issue Apr 29, 2023 · 0 comments
Open

Add Initial Drawing States #1

mohamedAdhamc opened this issue Apr 29, 2023 · 0 comments

Comments

@mohamedAdhamc
Copy link
Owner

mohamedAdhamc commented Apr 29, 2023

Currently there is only one active state which is the state for drawing freely on the canvas. there should be at least two more initial states:

1- Circle
2- Rectangle

This entails:

1- Changing the bottom toolbar to use some sort of "radio buttons". i.e. only one pressable at a time.
2- Pressing the button sends a signal which is caught from the canvas which updates the internal canvas state
3- Updating the canvas paint event handler to work according to state. Also probably need to do the same for the mouse events.

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

1 participant