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

Negative y-values cause crash #7535

Open
1 of 17 tasks
1v4r0 opened this issue Feb 11, 2025 · 1 comment
Open
1 of 17 tasks

Negative y-values cause crash #7535

1v4r0 opened this issue Feb 11, 2025 · 1 comment

Comments

@1v4r0
Copy link

1v4r0 commented Feb 11, 2025

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)

p5.js version

1.11.1

Web browser and version

Version 1.74.48 Chromium: 132.0.6834.83 (Official Build) (64-bit)

Operating system

Pop-OS(Ubuntu) 22.04

Steps to reproduce this

Just do a

"line(-1, -1, 401, -1)"

in draw somewhere. Apparently it can't handle purely negative y-values, which is something that often happens in code, where you "clip the edges" before "deletion". The weird thing is that negative x-values seem to be fine, not sure why y-values have this weird bug.

This is extremely annoying and I've gotten this bug numerous times, e.g. when doing translations in a coordinate system grid, where one of the grid-lines pops out of frame before being "undrawn". It is also surprisingly annoying to fix, which I've probably used hours on at this point.

@1v4r0 1v4r0 added the Bug label Feb 11, 2025
Copy link

welcome bot commented Feb 11, 2025

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant