Skip to content

Issue on drawing Squares #3

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

Open
BanjiBear opened this issue Oct 9, 2023 · 0 comments
Open

Issue on drawing Squares #3

BanjiBear opened this issue Oct 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@BanjiBear
Copy link
Owner

def get_top_left_bottom_right_p(start_p: QPoint, end_p: QPoint, square = False):

Currently available for drawing in all directions: top_left -- bottom_right, bottom_left -- top_right, bottom_right -- top_left, and top_right -- bottom_left
Bug in cases where height and width differ too much, causing starting point far from expected
Possible solution: calculate the min(height, width) before getting the true starting point

@BanjiBear BanjiBear added the bug Something isn't working label Oct 9, 2023
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