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

Canvas reaching outside of window #10

Closed
JMatthysen opened this issue Jul 1, 2020 · 1 comment
Closed

Canvas reaching outside of window #10

JMatthysen opened this issue Jul 1, 2020 · 1 comment

Comments

@JMatthysen
Copy link
Sponsor Contributor

canvas is reaching outside of window

Describe the bug
The lines drawn on a canvas inside a window are still visible outside of the bounds of the window.

To Reproduce
add_window("canvas_holding",width = 500, height = 500)

add_child("canvas_holder")

add_drawing("canvas", width= 500, height= 500)
draw_line("canvas", p1 = line1.p1, p2 = line1.p2,color = [150,150,150], thickness = 1)
draw_line("canvas", p1 = sensor1.origin, p2 = sensor1.p2, color =[100,200,150],thickness = 1)

end_child()
end_window()

Expected behavior
i expected only to see the lines that could be seen in the window.

Screenshots
see above

Additional context
Add any other context about the problem here.

@JMatthysen JMatthysen added the bug label Jul 1, 2020
hoffstadt added a commit that referenced this issue Jul 1, 2020
@hoffstadt
Copy link
Owner

Fixed with lasted push.

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

2 participants