processing/p5.js

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

Open

#8,847 opened on May 29, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (20,784 stars) (3,178 forks)batch import
Area:WebGLArea:WebGPUDocumentationHelp Wantedp5.js 2.0+

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