Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
more testing
acamposuribef134ad174e3a
diff --git a/test/standalone/hatch_test.html b/test/standalone/hatch_test.htmlindex 0b2ee31..14594c9 100644--- a/test/standalone/hatch_test.html+++ b/test/standalone/hatch_test.html@@ -3,7 +3,7 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />- <title>brush.js Standalone Hatch Test</title>+ <title>Hatch Test</title><style>* { box-sizing: border-box; }@@ -17,7 +17,7 @@}main {- width: min(1400px, calc(100vw - 24px));+ width: min(1240px, calc(100vw - 24px));margin: 0 auto;padding: 18px 0 24px;display: grid;@@ -72,9 +72,12 @@<body><main><div class="nav"><a href="../index.html">All tests</a></div>- <h1>Standalone Hatch Test</h1>+ <h1>Hatch Test</h1><p>- Exercises the hatch module in the standalone build: angle sweep, spacing, rand, gradient, continuous, cross-hatching, shapes, and combined options.+ Coverage page for hatch angle, spacing, randomization, gradients, continuity, cross-hatching, brush styles, and multi-polygon inputs.+ </p>+ <p>+ Panels should show stable hatch geometry and predictable option changes without clipping or ordering glitches.</p><div id="canvas-host"></div><script type="module" src="./hatch_test.js"></script>diff --git a/test/standalone/visual_suite.html b/test/standalone/visual_suite.htmlindex 8b20467..5bc26f4 100644--- a/test/standalone/visual_suite.html+++ b/test/standalone/visual_suite.html@@ -3,7 +3,7 @@<head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />- <title>brush.js Standalone Visual Suite</title>+ <title>Visual API Suite</title><style>* { box-sizing: border-box; }@@ -55,8 +55,8 @@#canvas-host {margin-top: 18px;position: relative;- width: 1240px;- height: 3200px;+ width: 1400px;+ height: 5200px;max-width: 100%;}@@ -76,9 +76,9 @@<body><main><div class="nav"><a href="../index.html">All tests</a></div>- <h1>Standalone Visual API Suite</h1>+ <h1>Visual API Suite</h1><p>- Broad browser coverage page for the standalone public API, intended for quick visual sweeps after larger rendering or state-management changes.+ Broad browser coverage page for the public API, intended for quick visual sweeps after larger rendering or state-management changes.</p><p>The browser console still receives the error-message checks, but the canvas itself is the main verification surface.diff --git a/test/standalone/visual_suite.js b/test/standalone/visual_suite.jsindex 04fc1b2..7782c7a 100644--- a/test/standalone/visual_suite.js+++ b/test/standalone/visual_suite.js@@ -1,7 +1,7 @@import * as brush from "../../dist/brush.esm.js";-const CANVAS_W = 1240;-const CANVAS_H = 3200;+const CANVAS_W = 1400;+const CANVAS_H = 5200;const MARGIN = 50;const LABEL_W = 175;const ROW_H = 56;@@ -65,7 +65,7 @@ async function main() {brush.angleMode(brush.DEGREES);brush.seed(42);brush.noiseSeed(42);- brush.clear("#f5f5f5");+ brush.clear("#ffffff");await brush.add("imageTip", {type: "image",