processing / processing/p5.js

Unknown issue with p5.js v1.11.6+

Open
#8,287 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • p5.strands
  • WebGL
  • DevOps, Build process, Unit testing
  • Internationalization (i18n)
  • Friendly Errors
  • Other (specify if possible)
p5.js version

v1.11.6+

Web browser and version

Chrome v142.0.7444.162

Operating system

macOS

Steps to reproduce this

In this example, since the rectangular player sprite has friction, it can fall over and flip onto its long side. This is apparent when p5play is used with q5 or p5 v1.11.5 and below.

https://editor.p5js.org/quinton-ashley/sketches/CrS1RC12n

Switch the p5 version to v1.11.6 or above, including v1 latest v1.11.11, and you'll see that p5 renders incorrectly. So this is not an issue with p5play, it's a result of changes made to p5.

I can't tell the cause of the issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked p5.js editor sketch and reproduce its rendering under p5 v1.11.5 versus v1.11.6 or later in Chrome on macOS. Compare the rendering-related changes between those versions and identify the regression affecting the flipped rectangular sprite; done means the cause and a verified correction are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.