q5 4.6.5 → 4.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/package.json +1 -1
- package/q5.js +2 -2
- package/q5.min.js +1 -1
- package/q5.min.js.map +1 -1
package/deno.json
CHANGED
package/package.json
CHANGED
package/q5.js
CHANGED
|
@@ -7660,10 +7660,10 @@ fn fragMain(f: FragParams) -> @location(0) vec4f {
|
|
|
7660
7660
|
|
|
7661
7661
|
// if the point stroke size is a single pixel (or smaller), use a rectangle
|
|
7662
7662
|
if (hswScaled <= 0.5) {
|
|
7663
|
-
addRect(x, y,
|
|
7663
|
+
addRect(x, y, qsw, qsw, calcRectRadii(0), hsw, 0);
|
|
7664
7664
|
} else {
|
|
7665
7665
|
// dimensions of the point needs to be set to half the stroke weight
|
|
7666
|
-
addEllipse(x, y,
|
|
7666
|
+
addEllipse(x, y, qsw, qsw, 0, TAU, hsw, 0);
|
|
7667
7667
|
}
|
|
7668
7668
|
};
|
|
7669
7669
|
|