Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
Test profiling
acamposuribef1d7d912daea
diff --git a/test/p5/angle_mode_test.html b/test/angle_mode_test.htmlsimilarity index 100%rename from test/p5/angle_mode_test.htmlrename to test/angle_mode_test.htmldiff --git a/test/p5/angle_mode_test.js b/test/angle_mode_test.jssimilarity index 100%rename from test/p5/angle_mode_test.jsrename to test/angle_mode_test.jsdiff --git a/test/p5/field_explorer.html b/test/field_explorer.htmlsimilarity index 100%rename from test/p5/field_explorer.htmlrename to test/field_explorer.htmldiff --git a/test/p5/fill.test.js b/test/fill.test.jssimilarity index 97%rename from test/p5/fill.test.jsrename to test/fill.test.jsindex c85aad7..d3243d4 100644--- a/test/p5/fill.test.js+++ b/test/fill.test.js@@ -67,7 +67,7 @@ vi.mock("../src/core/plot.js", () => ({Plot: class Plot {},}));-import { createFill, fill } from "../../src/fill/fill.js";+import { createFill, fill } from "../src/fill/fill.js";describe("createFill()", () => {beforeEach(() => {diff --git a/test/p5/fill_circle_explorer.html b/test/fill_circle_explorer.htmlsimilarity index 100%rename from test/p5/fill_circle_explorer.htmlrename to test/fill_circle_explorer.htmldiff --git a/test/p5/fill_circle_explorer.js b/test/fill_circle_explorer.jssimilarity index 100%rename from test/p5/fill_circle_explorer.jsrename to test/fill_circle_explorer.jsdiff --git a/test/p5/hatch_test.html b/test/hatch_test.htmlsimilarity index 100%rename from test/p5/hatch_test.htmlrename to test/hatch_test.htmldiff --git a/test/p5/hatch_test.js b/test/hatch_test.jssimilarity index 100%rename from test/p5/hatch_test.jsrename to test/hatch_test.jsdiff --git a/test/index.html b/test/index.htmlindex b73dfbf..1c5763a 100644--- a/test/index.html+++ b/test/index.html@@ -178,70 +178,91 @@<section class="band"><div class="band-head"><h2>p5 Tests</h2>- <p>Use these pages to visually inspect the p5 build. Each links to its standalone counterpart.</p>+ <p>Use these pages to visually inspect the p5 build directly in the browser.</p></div><div class="grid">- <a class="card" href="./p5/visual_suite.html">+ <a class="card" href="./visual_suite.html"><h3>Visual API Suite</h3><p>Wide coverage page that exercises most public APIs and logs error-message checks to the console.</p><span class="meta">Coverage</span>- <span class="path">test/p5/visual_suite.html</span>+ <span class="path">test/visual_suite.html</span></a>- <a class="card" href="./p5/hatch_test.html">- <h3>Hatch Test</h3>- <p>Exercises hatch angles, spacing, rand/continuous/gradient options, cross-hatching, brush types, shapes, and multi-polygon arrays.</p>- <span class="meta">Coverage</span>- <span class="path">test/p5/hatch_test.html</span>- </a>-- <a class="card" href="./p5/fill_circle_explorer.html">+ <a class="card" href="./fill_circle_explorer.html"><h3>Fill Circle Explorer</h3><p>Seeded single-shape page for inspecting watercolor fill bleed, opacity, texture, border, and palette color on a centered circle.</p><span class="meta">Explorer</span>- <span class="path">test/p5/fill_circle_explorer.html</span>+ <span class="path">test/fill_circle_explorer.html</span></a>- <a class="card" href="./p5/wash_test.html">+ <a class="card" href="./wash_test.html"><h3>Wash Test</h3><p>Direct WEBGL wash page that draws five random rect and circle polygons with palette colors at full opacity.</p><span class="meta">Coverage</span>- <span class="path">test/p5/wash_test.html</span>+ <span class="path">test/wash_test.html</span></a>- <a class="card" href="./p5/field_explorer.html">- <h3>Flow Field Explorer</h3>- <p>Interactive field inspector for comparing built-in fields with adjustable density and line length.</p>- <span class="meta">Explorer</span>- <span class="path">test/p5/field_explorer.html</span>+ <a class="card" href="./pastel_hatching_test.html">+ <h3>Pastel Hatching Test</h3>+ <p>Minimal global-mode sketch with a custom crayon brush and a single centered rectangle for pastel hatching experiments.</p>+ <span class="meta">Experiment</span>+ <span class="path">test/pastel_hatching_test.html</span></a>- <a class="card" href="./p5/angle_mode_test.html">+ <a class="card" href="./angle_mode_test.html"><h3>Angle Mode Test</h3><p>Compares degrees, radians, mixed mode changes, stored hatch angles, low-level Position movement, and custom fields.</p><span class="meta">Behavior</span>- <span class="path">test/p5/angle_mode_test.html</span>+ <span class="path">test/angle_mode_test.html</span>+ </a>++ <a class="card" href="./offscreen_target_test.html">+ <h3>Offscreen Targets</h3>+ <p>Checks brush.load() on p5.Graphics and custom-sized main framebuffers, with pixel-count diagnostics.</p>+ <span class="meta">Targets</span>+ <span class="path">test/offscreen_target_test.html</span>+ </a>++ <a class="card" href="./instance_mode_test.html">+ <h3>Instance Mode</h3>+ <p>Checks brush.instance(p) on the instance canvas, an instance p5.Graphics target, and an instance-owned main framebuffer.</p>+ <span class="meta">Instances</span>+ <span class="path">test/instance_mode_test.html</span></a>- <a class="card" href="./p5/transform_test.html">+ <a class="card" href="./multi_instance_async_test.html">+ <h3>Async Multi-Instance</h3>+ <p>Stress-tests the old multi-instance startup race with many instance-mode sketches and repeated canvas ownership checks.</p>+ <span class="meta">Regression</span>+ <span class="path">test/multi_instance_async_test.html</span>+ </a>++ <a class="card" href="./transform_test.html"><h3>Transform Alignment</h3><p>Checks that brush strokes and fills align with native p5 reference geometry under translate, rotate, and scale.</p><span class="meta">Geometry</span>- <span class="path">test/p5/transform_test.html</span>+ <span class="path">test/transform_test.html</span></a>- <a class="card" href="./p5/pushpop_test.html">+ <a class="card" href="./pushpop_test.html"><h3>Push / Pop State</h3><p>Verifies that p5 push/pop restores stroke, brush, fill, and hatch state correctly.</p><span class="meta">State</span>- <span class="path">test/p5/pushpop_test.html</span>+ <span class="path">test/pushpop_test.html</span></a>- <a class="card" href="./p5/pastel_hatching_test.html">- <h3>Pastel Hatching Test</h3>- <p>Minimal global-mode sketch with a custom crayon brush and a single centered rectangle for pastel hatching experiments.</p>- <span class="meta">Experiment</span>- <span class="path">test/p5/pastel_hatching_test.html</span>+ <a class="card" href="./hatch_test.html">+ <h3>Hatch Test</h3>+ <p>Exercises hatch angles, spacing, rand/continuous/gradient options, cross-hatching, brush types, shapes, and multi-polygon arrays.</p>+ <span class="meta">Coverage</span>+ <span class="path">test/hatch_test.html</span>+ </a>++ <a class="card" href="./field_explorer.html">+ <h3>Flow Field Explorer</h3>+ <p>Interactive field inspector for comparing built-in fields with adjustable density and line length.</p>+ <span class="meta">Explorer</span>+ <span class="path">test/field_explorer.html</span></a></div></section>@@ -249,99 +270,56 @@<section class="band"><div class="band-head"><h2>Standalone Tests</h2>- <p>Same tests running the standalone build (no p5). Each links back to its p5 counterpart.</p>+ <p>Use these pages to inspect the standalone build without p5.</p></div><div class="grid"><a class="card" href="./standalone/visual_suite.html">- <h3>Visual API Suite</h3>- <p>Broad standalone coverage page for brushes, fields, primitives, hatch, wash, fill, and custom/image brush types.</p>+ <h3>Standalone Visual API Suite</h3>+ <p>Broad standalone coverage page for brushes, fields, primitives, hatch, wash, mass, fill, and custom/image brush types.</p><span class="meta">Coverage</span><span class="path">test/standalone/visual_suite.html</span></a>- <a class="card" href="./standalone/hatch_test.html">- <h3>Hatch Test</h3>- <p>Exercises hatch angles, spacing, rand/continuous/gradient options, cross-hatching, shape variety, and combined hatch settings.</p>- <span class="meta">Coverage</span>- <span class="path">test/standalone/hatch_test.html</span>- </a>-<a class="card" href="./standalone/fill_circle_explorer.html">- <h3>Fill Circle Explorer</h3>+ <h3>Standalone Fill Circle Explorer</h3><p>Seeded single-shape page for inspecting watercolor fill bleed, opacity, texture, border, and palette color in the standalone build.</p><span class="meta">Explorer</span><span class="path">test/standalone/fill_circle_explorer.html</span></a>- <a class="card" href="./standalone/wash_test.html">- <h3>Wash Test</h3>- <p>Standalone wash page with seeded PRNG drawing rect and circle polygons with palette colors at full opacity.</p>+ <a class="card" href="./standalone/hatch_test.html">+ <h3>Standalone Hatch Test</h3>+ <p>Exercises hatch angles, spacing, rand/continuous/gradient options, cross-hatching, shape variety, and combined hatch settings.</p><span class="meta">Coverage</span>- <span class="path">test/standalone/wash_test.html</span>+ <span class="path">test/standalone/hatch_test.html</span></a><a class="card" href="./standalone/field_explorer.html">- <h3>Flow Field Explorer</h3>+ <h3>Standalone Flow Field Explorer</h3><p>Interactive field inspector for comparing built-in fields with adjustable density and line length in the standalone build.</p><span class="meta">Explorer</span><span class="path">test/standalone/field_explorer.html</span></a>- <a class="card" href="./standalone/angle_mode_test.html">- <h3>Angle Mode Test</h3>- <p>Standalone angle mode coverage with canvas2D reference overlays for degrees, radians, hatch, flow lines, and custom fields.</p>- <span class="meta">Behavior</span>- <span class="path">test/standalone/angle_mode_test.html</span>- </a>-- <a class="card" href="./standalone/transform_test.html">- <h3>Transform Alignment</h3>- <p>Native 2D references overlaid on standalone brush marks to verify translate, rotate, scale, stroke, and fill alignment.</p>- <span class="meta">Geometry</span>- <span class="path">test/standalone/transform_test.html</span>+ <a class="card" href="./standalone/transform_alignment.html">+ <h3>Standalone Transform Alignment</h3>+ <p>Native 2D references are overlaid on standalone brush marks to verify translate, rotate, scale, stroke, and fill alignment.</p>+ <span class="meta">Standalone</span>+ <span class="path">test/standalone/transform_alignment.html</span></a>- <a class="card" href="./standalone/pushpop_test.html">- <h3>Push / Pop State</h3>+ <a class="card" href="./standalone/pushpop.html">+ <h3>Standalone Push / Pop</h3><p>Checks that standalone push/pop restores stroke color, weight, brush type, and fill state.</p>- <span class="meta">State</span>- <span class="path">test/standalone/pushpop_test.html</span>+ <span class="meta">Standalone</span>+ <span class="path">test/standalone/pushpop.html</span></a>- <a class="card" href="./standalone/pastel_hatching_test.html">- <h3>Pastel Hatching Test</h3>- <p>Interactive standalone version with brush selector, precision, strength, gradient, and outline controls.</p>- <span class="meta">Experiment</span>- <span class="path">test/standalone/pastel_hatching_test.html</span>- </a>- </div>- </section>-- <section class="band">- <div class="band-head">- <h2>p5-Specific Tests</h2>- <p>Tests for p5-only features: instance mode, multi-instance startup, and offscreen targets.</p>- </div>- <div class="grid">- <a class="card" href="./p5_specific/instance_mode_test.html">- <h3>Instance Mode</h3>- <p>Checks brush.instance(p) on the instance canvas, an instance p5.Graphics target, and an instance-owned main framebuffer.</p>- <span class="meta">Instances</span>- <span class="path">test/p5_specific/instance_mode_test.html</span>- </a>-- <a class="card" href="./p5_specific/multi_instance_async_test.html">- <h3>Async Multi-Instance</h3>- <p>Stress-tests the old multi-instance startup race with many instance-mode sketches and repeated canvas ownership checks.</p>- <span class="meta">Regression</span>- <span class="path">test/p5_specific/multi_instance_async_test.html</span>- </a>-- <a class="card" href="./p5_specific/offscreen_target_test.html">- <h3>Offscreen Targets</h3>- <p>Checks brush.load() on p5.Graphics and custom-sized main framebuffers, with pixel-count diagnostics.</p>- <span class="meta">Targets</span>- <span class="path">test/p5_specific/offscreen_target_test.html</span>+ <a class="card" href="./standalone/offscreen.html">+ <h3>Standalone Offscreen</h3>+ <p>Checks drawing into an OffscreenCanvas target and presenting the result to a visible canvas.</p>+ <span class="meta">Standalone</span>+ <span class="path">test/standalone/offscreen.html</span></a></div></section>diff --git a/test/p5/p5_first_frame_profiler.js b/test/p5/p5_first_frame_profiler.jsdeleted file mode 100644index 3f73b14..0000000--- a/test/p5/p5_first_frame_profiler.js+++ /dev/null@@ -1,56 +0,0 @@-(() => {- const start =- performance.getEntriesByType("navigation")[0]?.domContentLoadedEventEnd ??- performance.now();-- let reported = false;- let badge = null;-- function ensureBadge() {- if (document.getElementById("firstLoadVal")) return null;- if (badge) return badge;- if (!document.body) return null;-- badge = document.createElement("div");- badge.id = "p5-first-load-badge";- badge.style.position = "fixed";- badge.style.top = "12px";- badge.style.right = "12px";- badge.style.zIndex = "9999";- badge.style.padding = "8px 10px";- badge.style.border = "1px solid rgba(48, 41, 30, 0.14)";- badge.style.borderRadius = "8px";- badge.style.background = "rgba(255, 252, 245, 0.9)";- badge.style.color = "#153e5c";- badge.style.font = '11px/1.4 Menlo, Monaco, "Courier New", monospace';- badge.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.06)";- badge.textContent = "First load -";- document.body.appendChild(badge);- return badge;- }-- function setText(text) {- const valueEl = document.getElementById("firstLoadVal");- if (valueEl) {- valueEl.textContent = text;- return;- }- const el = ensureBadge();- if (el) el.textContent = `First load ${text}`;- }-- document.addEventListener("DOMContentLoaded", () => {- ensureBadge();- });-- window.reportP5FirstFrame = (label = document.title || "p5 test") => {- if (reported) return;- reported = true;- requestAnimationFrame(() => {- const total = performance.now() - start;- const text = `${total.toFixed(1)} ms`;- setText(text);- console.log(`${label} first load: ${text}`);- });- };-})();diff --git a/test/p5_first_frame_profiler.js b/test/p5_first_frame_profiler.jsnew file mode 100644index 0000000..6b559d5--- /dev/null+++ b/test/p5_first_frame_profiler.js@@ -0,0 +1,70 @@+(() => {+ const start =+ performance.getEntriesByType("navigation")[0]?.domContentLoadedEventEnd ??+ performance.now();++ // Exposed so scripts can compute parse time:+ // const parseMs = performance.now() - window.__brushLoadStart;+ window.__brushLoadStart = start;++ let reported = false;+ let badge = null;++ function ensureBadge() {+ if (document.getElementById("firstLoadVal")) return null;+ if (badge) return badge;+ if (!document.body) return null;++ badge = document.createElement("div");+ badge.id = "p5-first-load-badge";+ badge.style.position = "fixed";+ badge.style.top = "12px";+ badge.style.right = "12px";+ badge.style.zIndex = "9999";+ badge.style.padding = "8px 10px";+ badge.style.border = "1px solid rgba(48, 41, 30, 0.14)";+ badge.style.borderRadius = "8px";+ badge.style.background = "rgba(255, 252, 245, 0.9)";+ badge.style.color = "#153e5c";+ badge.style.font = '11px/1.4 Menlo, Monaco, "Courier New", monospace';+ badge.style.boxShadow = "0 2px 10px rgba(0, 0, 0, 0.06)";+ badge.textContent = "First load -";+ document.body.appendChild(badge);+ return badge;+ }++ document.addEventListener("DOMContentLoaded", () => {+ ensureBadge();+ });++ // timing: optional { parseMs, drawMs }+ // render is derived as (total - parseMs - drawMs) inside the rAF, where total+ // is rAF-measured and therefore includes actual GPU work and any p5 draw() overhead+ // (e.g. the image(labelBuf) blit) that runs after setup() but before the frame paints.+ window.reportP5FirstFrame = (label = document.title || "p5 test", timing = {}) => {+ if (reported) return;+ reported = true;+ requestAnimationFrame(() => {+ const total = performance.now() - start;+ const parts = [];+ if (timing.parseMs != null) parts.push(`parse ${timing.parseMs.toFixed(0)} ms`);+ if (timing.drawMs != null) parts.push(`draw ${timing.drawMs.toFixed(0)} ms`);+ if (timing.parseMs != null && timing.drawMs != null) {+ const renderMs = total - timing.parseMs - timing.drawMs;+ parts.push(`render ${renderMs.toFixed(0)} ms`);+ }+ const hasBreakdown = parts.length > 0;+ parts.push(hasBreakdown ? `total ${total.toFixed(0)} ms` : `${total.toFixed(1)} ms`);+ const text = parts.join(" · ");++ const valueEl = document.getElementById("firstLoadVal");+ if (valueEl) {+ valueEl.textContent = text;+ } else {+ const el = ensureBadge();+ if (el) el.textContent = hasBreakdown ? text : `First load ${text}`;+ }+ console.log(`${label}: ${text}`);+ });+ };+})();diff --git a/test/p5/pastel_hatching_test.html b/test/pastel_hatching_test.htmlsimilarity index 100%rename from test/p5/pastel_hatching_test.htmlrename to test/pastel_hatching_test.htmldiff --git a/test/p5/pastel_hatching_test.js b/test/pastel_hatching_test.jssimilarity index 100%rename from test/p5/pastel_hatching_test.jsrename to test/pastel_hatching_test.jsdiff --git a/test/p5/pushpop_test.html b/test/pushpop_test.htmlsimilarity index 100%rename from test/p5/pushpop_test.htmlrename to test/pushpop_test.htmldiff --git a/test/p5/sketch.js b/test/sketch.jssimilarity index 98%rename from test/p5/sketch.jsrename to test/sketch.jsindex ddc5604..97573bc 100644--- a/test/p5/sketch.js+++ b/test/sketch.js@@ -7,6 +7,9 @@// Run: open test/visual_suite.html// ============================================================+const _scriptStart = performance.now();+let _setupMs = 0;+// ---- Layout constants ----const CANVAS_W = 1400;const CANVAS_H = 5200;@@ -565,8 +568,7 @@ async function setup() {fillRow("opacity 90", col(4), 90, 0.1, "out", 0.4, 0.4);fillRow("opacity 140", col(4), 140, 0.1, "out", 0.4, 0.4);- // ---- Composite label overlay on top of brush rendering ----- // (draw() runs after postsetup which composites the final brush pass)+ _setupMs = performance.now() - _scriptStart;}// draw() runs after postsetup — ideal moment to overlay labels@@ -574,6 +576,9 @@ function draw() {// WEBGL resets transforms each frame; re-translate to top-lefttranslate(-width / 2, -height / 2);if (!nativeDebugStage) image(labelBuf, 0, 0, width, height);- window.reportP5FirstFrame?.("visual_suite");+ window.reportP5FirstFrame?.("visual_suite", {+ parseMs: _scriptStart - (window.__brushLoadStart ?? _scriptStart),+ drawMs: _setupMs,+ });noLoop(); // static sketch — draw only once}diff --git a/test/standalone/standalone_profiler.js b/test/standalone/standalone_profiler.jsindex c3a9500..5c6bdd7 100644--- a/test/standalone/standalone_profiler.js+++ b/test/standalone/standalone_profiler.js@@ -3,6 +3,10 @@performance.getEntriesByType("navigation")[0]?.domContentLoadedEventEnd ??performance.now();+ // Exposed so module scripts can compute parse time:+ // const parseMs = performance.now() - window.__brushLoadStart;+ window.__brushLoadStart = start;+let reported = false;let badge = null;@@ -29,28 +33,38 @@return badge;}- function setText(text) {- const valueEl = document.getElementById("firstLoadVal");- if (valueEl) {- valueEl.textContent = text;- return;- }- const el = ensureBadge();- if (el) el.textContent = `First load ${text}`;- }-document.addEventListener("DOMContentLoaded", () => {ensureBadge();});- window.reportStandaloneFirstFrame = (label = document.title || "standalone test") => {+ // timing: optional { parseMs, drawMs }+ // render is derived as (total - parseMs - drawMs) inside the rAF, where total+ // is rAF-measured and therefore includes actual GPU work — unlike a synchronous+ // performance.now() after brush.render(), which always shows ~0ms (GL is async).+ window.reportStandaloneFirstFrame = (label = document.title || "standalone test", timing = {}) => {if (reported) return;reported = true;requestAnimationFrame(() => {const total = performance.now() - start;- const text = `${total.toFixed(1)} ms`;- setText(text);- console.log(`${label} first load: ${text}`);+ const parts = [];+ if (timing.parseMs != null) parts.push(`parse ${timing.parseMs.toFixed(0)} ms`);+ if (timing.drawMs != null) parts.push(`draw ${timing.drawMs.toFixed(0)} ms`);+ if (timing.parseMs != null && timing.drawMs != null) {+ const renderMs = total - timing.parseMs - timing.drawMs;+ parts.push(`render ${renderMs.toFixed(0)} ms`);+ }+ const hasBreakdown = parts.length > 0;+ parts.push(hasBreakdown ? `total ${total.toFixed(0)} ms` : `${total.toFixed(1)} ms`);+ const text = parts.join(" · ");++ const valueEl = document.getElementById("firstLoadVal");+ if (valueEl) {+ valueEl.textContent = text;+ } else {+ const el = ensureBadge();+ if (el) el.textContent = hasBreakdown ? text : `First load ${text}`;+ }+ console.log(`${label}: ${text}`);});};})();diff --git a/test/standalone/visual_suite.js b/test/standalone/visual_suite.jsindex 94529dc..3fc6659 100644--- a/test/standalone/visual_suite.js+++ b/test/standalone/visual_suite.js@@ -134,6 +134,8 @@ function runErrorTests() {// ================================================================(async () => {+ const _scriptStart = performance.now();+brush.seed(42);brush.noiseSeed(42);brush.scaleBrushes(5);@@ -499,7 +501,11 @@ function runErrorTests() {fillRow("opacity 140", col(4), 140, 0.1, "out", 0.4, 0.4);brush.pop();+ const _drawMs = performance.now() - _scriptStart;brush.render();- window.reportStandaloneFirstFrame?.("visual_suite");+ window.reportStandaloneFirstFrame?.("visual_suite", {+ parseMs: _scriptStart - (window.__brushLoadStart ?? _scriptStart),+ drawMs: _drawMs,+ });console.log("Standalone visual suite complete");})();diff --git a/test/p5/stroke_pressure.test.js b/test/stroke_pressure.test.jssimilarity index 97%rename from test/p5/stroke_pressure.test.jsrename to test/stroke_pressure.test.jsindex 9861716..15bd377 100644--- a/test/p5/stroke_pressure.test.js+++ b/test/stroke_pressure.test.js@@ -59,7 +59,7 @@ vi.mock("../src/stroke/gl_draw.js", () => ({snapshotMatrix: () => {},}));-import { add, box, normalizePressure } from "../../src/stroke/stroke.js";+import { add, box, normalizePressure } from "../src/stroke/stroke.js";describe("normalizePressure()", () => {it("keeps function pressure in explicit custom mode", () => {diff --git a/test/p5/transform_test.html b/test/transform_test.htmlsimilarity index 100%rename from test/p5/transform_test.htmlrename to test/transform_test.htmldiff --git a/test/p5/unit.test.js b/test/unit.test.jssimilarity index 98%rename from test/p5/unit.test.jsrename to test/unit.test.jsindex bcb743d..1dce827 100644--- a/test/p5/unit.test.js+++ b/test/unit.test.js@@ -72,10 +72,10 @@ import {seed,weightedRand,toDegreesSigned,-} from "../../src/core/utils.js";-import { arc } from "../../src/core/primitives.js";-import { Position, addField, field as activateField, noField } from "../../src/core/flowfield.js";-import { hatch } from "../../src/hatch/hatch.js";+} from "../src/core/utils.js";+import { arc } from "../src/core/primitives.js";+import { Position, addField, field as activateField, noField } from "../src/core/flowfield.js";+import { hatch } from "../src/hatch/hatch.js";beforeEach(() => {currentAngleMode.value = "radians";diff --git a/test/p5/visual_suite.html b/test/visual_suite.htmlsimilarity index 100%rename from test/p5/visual_suite.htmlrename to test/visual_suite.htmldiff --git a/test/p5/wash_test.html b/test/wash_test.htmlsimilarity index 100%rename from test/p5/wash_test.htmlrename to test/wash_test.htmldiff --git a/test/p5/wash_test.js b/test/wash_test.jssimilarity index 100%rename from test/p5/wash_test.jsrename to test/wash_test.js