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-position values in draw() yield an error #7375

Closed
1 of 17 tasks
teacher-svb opened this issue Nov 14, 2024 · 2 comments
Closed
1 of 17 tasks

negative y-position values in draw() yield an error #7375

teacher-svb opened this issue Nov 14, 2024 · 2 comments

Comments

@teacher-svb
Copy link

teacher-svb commented Nov 14, 2024

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

p5@1.11.1

Web browser and version

brave 1.71.123

Operating system

Debian Linux

Steps to reproduce this

Steps:

  1. draw a shape (any shape) at a negative y-position in the draw() function
  2. run the sketch
  3. error

Snippet:

function setup() {
  createCanvas(400, 400);
}

function draw() {
  background(220);
  
  circle(-100, -100, 100);
}
Copy link

welcome bot commented Nov 14, 2024

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!

@teacher-svb teacher-svb changed the title negative y-position values yield an error negative y-position values in draw() yield an error Nov 14, 2024
@davepagurek
Copy link
Contributor

I think this is probably the same bug as #7259 so I'm going to close this issue and move the discussion over to there! As a workaround, I believe this is caused by having accessible output enabled in the p5 web editor (ctrl+shift+1 to enable, ctrl+shit+2 to disable on Windows, replace "ctrl" with "cmd" for macOS.) Try disabling that to be able to use negative values in the mean time.

@davepagurek davepagurek closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
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

2 participants