Skip to content

Unlock custom brushes, natural fill effects and intuitive hatching in p5.js

2.5 KB
Raw Blame
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>p5.brush Standalone Visual Suite</title>
    <style>
      * { box-sizing: border-box; }

      body {
        margin: 0;
        color: #22313f;
        background:
          radial-gradient(circle at top left, rgba(20, 48, 73, 0.08), transparent 24%),
          linear-gradient(180deg, #f7f2e7 0%, #ece3d3 100%);
        font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
      }

      main {
        width: min(1240px, calc(100vw - 24px));
        margin: 0 auto;
        padding: 18px 0 24px;
        display: grid;
        justify-items: center;
      }

      main > * { width: 100%; }

      .nav {
        margin-bottom: 14px;
        font: 11px/1.2 Menlo, Monaco, "Courier New", monospace;
        display: flex;
        gap: 12px;
      }

      .nav a { color: #153e5c; text-decoration: none; }
      .nav a:hover { text-decoration: underline; }
      .nav .sep { color: #8a9aa8; }

      h1 {
        margin: 0 0 8px;
        font-size: clamp(24px, 3.6vw, 34px);
        letter-spacing: -0.04em;
      }

      p {
        max-width: 860px;
        margin: 0 0 8px;
        color: #52616e;
        line-height: 1.45;
        font-size: 13px;
      }

      #canvas-host {
        margin-top: 18px;
        display: grid;
        justify-content: center;
        width: 100%;
        overflow: hidden;
      }

      #canvas-host canvas {
        grid-area: 1 / 1;
        display: block;
        max-width: 100%;
        height: auto !important;
      }

      #label-canvas { pointer-events: none; }
    </style>
  </head>
  <body>
    <main>
      <div class="nav">
        <a href="../index.html">All tests</a>
        <span class="sep">·</span>
        <a href="../p5/visual_suite.html">← p5 version</a>
      </div>
      <h1>Visual API Suite <small style="font-size:0.55em;color:#8a9aa8;">standalone</small></h1>
      <p>
        Broad standalone 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.
      </p>
      <div id="canvas-host"></div>
      <script src="./standalone_profiler.js"></script>
      <script type="module" src="./visual_suite.js"></script>
    </main>
  <script src="../test-nav.js"></script>
  </body>
</html>