processing / processing/p5.js

[p5.js 2.0+ Question]: Stroke Scaling is Different in p5 WebGL and WebGPU

Open
#8,847 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:WebGL Area:WebGPU Help Wanted p5.js 2.0+
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
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
p5.js version

Any

Web browser and version

Any

Operating system

macOS 26.5

Steps to reproduce this

Is stroke scaling in p5 WebGL and WebGPU incorrect?

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

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 by reproducing the linked p5.js Editor sketch in both WebGL and WebGPU modes. Compare how stroke scaling behaves across the two rendering paths and determine the expected behavior before locating the relevant rendering code. Done means the discrepancy is explained and the intended behavior is clearly defined for a possible fix or regression test.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.