From 7c7b8d684535380199eee4a9aba717c4161600a4 Mon Sep 17 00:00:00 2001 From: nityam Date: Sat, 30 May 2026 22:54:56 +0530 Subject: [PATCH] note strokeweight isn't scaled in webgl/webgpu --- src/shape/attributes.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shape/attributes.js b/src/shape/attributes.js index 41fe554849..fcf3bfd04c 100644 --- a/src/shape/attributes.js +++ b/src/shape/attributes.js @@ -513,8 +513,9 @@ function attributes(p5, fn){ * Sets the width of the stroke used for points, lines, and the outlines of * shapes. * - * Note: `strokeWeight()` is affected by transformations, especially calls to - * scale(). + * Note: In 2D mode, `strokeWeight()` is affected by transformations, + * especially calls to scale(). It isn't affected by + * transformations in WebGL and WebGPU modes. * * Calling `strokeWeight()` without an argument returns the current stroke weight as a number. *