Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
docs: fix noise param description — per-stroke opacity variation, not line wobble
acamposuribecad8ca530798
diff --git a/README.md b/README.mdindex ca08dff..3221e5e 100644--- a/README.md+++ b/README.md@@ -330,7 +330,7 @@ Functions for managing brush behaviors and properties.- `image`: Only for `"image"` type. An object with a `src` property pointing to your image file: `{ src: "./tip.jpg" }`.- `rotate`: How the tip rotates as it moves. `"none"` keeps it fixed, `"natural"` follows the stroke direction, `"random"` spins randomly.- `markerTip`: Only for `"marker"`, `"custom"`, and `"image"` types. Set to `false` to disable the extra soft tip buildup those brushes add at the start and end of each stroke. Defaults to `true`.- - `noise`: Multiplies the subtle line-noise variation used along the stroke. `1` keeps the default behavior, `0` disables it, and higher values make the line wobble more.+ - `noise`: Controls per-stroke opacity variation. Each time a stroke is drawn, the brush samples a Gaussian to randomly shift the whole stroke slightly lighter or darker than its base alpha — giving repeated strokes an organic, non-mechanical feel. `0` disables the variation (every stroke is identical in opacity). `1` is the maximum variation. Defaults to `0.3`.- **Usage**:```javascript// Image brush — use a photo as the brush tip.diff --git a/llms.txt b/llms.txtindex 400def8..59543bb 100644--- a/llms.txt+++ b/llms.txt@@ -184,7 +184,7 @@ If an LLM is helping a user design a brush, prefer pointing them to the interact| `image` | `"image"` type: `{ src: "./tip.jpg" }` || `rotate` | `"none"`, `"natural"`, `"random"` || `markerTip` | `"marker"`, `"custom"`, `"image"` only. Boolean. Defaults to `true`. Set `false` to disable the extra soft tip buildup at the start/end of strokes. |-| `noise` | Multiplies subtle line-noise variation along the stroke. Use `0–1`; `0` disables it and `1` keeps the standard amount. |+| `noise` | Per-stroke opacity variation. Each stroke drawn with this brush gets a randomly modulated alpha — subtly lighter or darker — giving repeated strokes an organic feel. `0` disables variation (every stroke identical). `1` is maximum variation. Defaults to `0.3`. |Important `brush.add()` guidance for LLMs: