{
 "slug": "p5-brush",
 "name": "p5.brush",
 "author": "acamposuribe (GitHub)",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "MIT JavaScript library that adds pencil, charcoal, marker, watercolor-fill and hatching brushes to p5.js 2.x (or standalone WebGL2) for generative art and prints.",
 "category": {
  "slug": "illustrations",
  "name": "Illustrations"
 },
 "tags": [
  "Code library",
  "Open source"
 ],
 "styles": [],
 "logo_url": "https://agentgid.com/media/avatars/acamposuribe.png",
 "logo_letter": "P",
 "links": {
  "repo": "https://github.com/acamposuribe/p5.brush",
  "website": null,
  "api_docs": null,
  "open_model": null
 },
 "preview": {
  "kind": "image_grid",
  "src": "https://agentgid.com/assets/p5-brush/demo.jpg",
  "alt": "A watercolor sun and sea, a charcoal horizon, a hatched box outlined in pencil and a marker stroke, drawn in one setup() call.",
  "caption": "Made by AgentGid with p5.brush 3.0.0 with p5.js 2.2.3 (jsDelivr), rendered in headless Chromium. MIT License; the picture is our own sketch drawn with the library, no files of the library are shown."
 },
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Free and open source (MIT).",
   "source": {
    "label": "github.com/acamposuribe/p5.brush",
    "url": "https://github.com/acamposuribe/p5.brush"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Yes",
   "status": "yes",
   "sub": "MIT",
   "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT; keep the license notice with copies of the code",
   "source": {
    "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": "Keep the notice in code copies",
   "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
   "note": "No credit on screen. Keep the license notice inside the code you ship.",
   "source": {
    "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "npm package",
   "status": "info",
   "sub": "Installs without a key",
   "quote": null,
   "note": "An agent can install it by itself with npm install p5.brush. No key or account is needed.",
   "source": {
    "label": "github.com/acamposuribe/p5.brush",
    "url": "https://github.com/acamposuribe/p5.brush"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "MIT",
  "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
  "summary": "License. You may use it in paid apps, client work and art for sale, and ship it inside your app; keep the copyright and license notice with copies of the code. No visible credit is needed.",
  "pages_read": 1,
  "rules": [
   "Keep the MIT copyright and permission notice in copies of the code.",
   "Needs p5.js 2.x and a WEBGL canvas (or the standalone build in a WebGL2 browser).",
   "Install with npm install p5.brush (README)."
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "Yes",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
    "source": {
     "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
     "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
    "source": {
     "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
     "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "Can ship inside your app",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
    "source": {
     "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
     "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "Allowed",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
    "source": {
     "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
     "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
    },
    "note": null
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-11-25",
  "commercial_use_page": "https://agentgid.com/assets/p5-brush/commercial-use/"
 },
 "overview": {
  "heading": "p5.brush: pencil, ink and watercolor marks in code",
  "body": "p5.brush is a free drawing library that makes pictures drawn in code look hand-made: pencil and charcoal lines, marker and pen strokes, watercolor fills and hatching. It works on top of p5.js, or on its own in any modern browser, and it is made for generative art and large prints. You may use it in paid products under the MIT license."
 },
 "uses": [
  {
   "title": "Hand-drawn look for generative art",
   "text": "Give a generative art piece the texture of real pencils, pens and charcoal instead of clean computer lines, for prints or online editions.",
   "idea": false,
   "image": null
  },
  {
   "title": "Watercolor fills for shapes",
   "text": "Fill circles, rectangles and free shapes with color that spreads, pools and dries like watercolor, so flat shapes look painted.",
   "idea": false,
   "image": null
  },
  {
   "title": "Shading with hatch lines",
   "text": "Shade areas with even rows of hatch lines at the angle and spacing you choose, like an ink drawing.",
   "idea": false,
   "image": null
  },
  {
   "title": "Strokes that bend along a flow",
   "text": "Make lines curve and wave on their own by turning on a built-in flow field such as waves, spiral or a gentle hand wobble.",
   "idea": false,
   "image": null
  },
  {
   "title": "Your own brushes",
   "text": "Design a new brush with its own texture and pressure in the online Brush Maker, then paste the generated code into the sketch.",
   "idea": false,
   "image": null
  },
  {
   "title": "Sketchy illustrations on a landing page",
   "text": "Draw a hero illustration or section dividers in code with a pencil-and-watercolor look, instead of exporting static images.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "Add p5.brush 3.0.0 to my p5.js 2 sketch, use a WEBGL canvas, and draw a pencil line and a watercolor circle.",
  "install": null,
  "install_note": null,
  "code": [
   {
    "tab": "Step 1",
    "intro": "Load p5.js 2.x first, then p5.brush, in this order.",
    "source": "<script src=\"path_to/p5.min.js\"></script>\n<script src=\"path_to/p5.brush.js\"></script>"
   },
   {
    "tab": "Step 2",
    "intro": "Or install it from npm and import the p5 build (or the standalone build, which needs no p5.js).",
    "source": "npm install p5.brush --save\nimport * as brush from 'p5.brush'"
   }
  ]
 },
 "mistakes": [
  {
   "dont": "Use it with p5.js 1.x or a default 2D canvas",
   "fix": "Load p5.js 2.x and create the canvas with createCanvas(w, h, WEBGL)",
   "why": "The p5 build requires p5.js 2.x and a WEBGL canvas",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Mix p5 calls such as push(), background() or randomSeed() into a standalone sketch",
   "fix": "In the standalone build use brush.push(), brush.clear() and brush.seed(), and call brush.render() at the end of each frame",
   "why": "The two builds have different calls; mixing them breaks the sketch",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Import p5.brush as a module and call brush functions in global mode",
   "fix": "In instance mode call brush.instance(p) inside the sketch function before setup and draw",
   "why": "With p5 and p5.brush as modules, p5 runs in instance mode",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Load p5.brush before p5.js",
   "fix": "Put the p5.min.js script tag first, then p5.brush.js",
   "why": "The README gives this order",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": true,
  "self_serve_text": "Agent installs a package or loads it from a CDN",
  "install": "npm install p5.brush",
  "repo": "https://github.com/acamposuribe/p5.brush",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_files": null,
  "formats": [],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": "p5.brush, MIT License: keep the LICENSE notice with the code; no credit on screen is needed",
  "rules_text": "- p5.brush (Illustrations). MIT JavaScript library that adds pencil, charcoal, marker, watercolor-fill and hatching brushes to p5.js 2.x (or standalone WebGL2) for generative art and prints. Price: free; commercial use OK; no credit needed.\n  Connect: npm p5.brush.\n  Rule: Keep the MIT copyright and permission notice in copies of the code.\n  Rule: Needs p5.js 2.x and a WEBGL canvas (or the standalone build in a WebGL2 browser).\n  Rule: Install with npm install p5.brush (README).\n  License: https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md (checked 2026-11-25; details: https://agentgid.com/assets/p5-brush/)",
  "agent_md": "https://agentgid.com/assets/p5-brush/agent.md",
  "card_json": "https://agentgid.com/assets/p5-brush/card.json"
 },
 "popularity": {
  "gid_score": 36,
  "stars": 1501,
  "downloads_7d": 28150,
  "downloads_7d_label": "28.1K",
  "downloads_change_4w_pct": 159.1,
  "eco": "npm",
  "package": "p5.brush",
  "repo": "acamposuribe/p5.brush",
  "agent_projects": null,
  "agent_projects_total": null,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [
    [
     "2025-12-01",
     60
    ],
    [
     "2025-12-08",
     96
    ],
    [
     "2025-12-15",
     47
    ],
    [
     "2025-12-22",
     51
    ],
    [
     "2025-12-29",
     90
    ],
    [
     "2026-01-05",
     113
    ],
    [
     "2026-01-12",
     73
    ],
    [
     "2026-01-19",
     45
    ],
    [
     "2026-01-26",
     48
    ],
    [
     "2026-02-02",
     70
    ],
    [
     "2026-02-09",
     59
    ],
    [
     "2026-02-16",
     67
    ],
    [
     "2026-02-23",
     64
    ],
    [
     "2026-03-02",
     45
    ],
    [
     "2026-03-09",
     407
    ],
    [
     "2026-03-16",
     701
    ],
    [
     "2026-03-23",
     219
    ],
    [
     "2026-03-30",
     311
    ],
    [
     "2026-04-06",
     188
    ],
    [
     "2026-04-13",
     129
    ],
    [
     "2026-04-20",
     123
    ],
    [
     "2026-04-27",
     141
    ],
    [
     "2026-05-04",
     711
    ],
    [
     "2026-05-11",
     204
    ],
    [
     "2026-05-18",
     130
    ],
    [
     "2026-05-25",
     192
    ],
    [
     "2026-06-01",
     228
    ],
    [
     "2026-06-08",
     163
    ],
    [
     "2026-06-15",
     133
    ],
    [
     "2026-06-22",
     225
    ],
    [
     "2026-06-29",
     185
    ],
    [
     "2026-07-06",
     288
    ],
    [
     "2026-07-13",
     972
    ],
    [
     "2026-07-20",
     180
    ],
    [
     "2026-07-27",
     200
    ],
    [
     "2026-08-03",
     191
    ],
    [
     "2026-08-10",
     649
    ],
    [
     "2026-08-17",
     789
    ],
    [
     "2026-08-24",
     2097
    ],
    [
     "2026-08-31",
     1737
    ],
    [
     "2026-09-07",
     2000
    ],
    [
     "2026-09-14",
     1810
    ],
    [
     "2026-09-21",
     5658
    ],
    [
     "2026-09-28",
     6326
    ],
    [
     "2026-10-05",
     7036
    ],
    [
     "2026-10-12",
     7634
    ],
    [
     "2026-10-19",
     13232
    ],
    [
     "2026-10-26",
     19366
    ],
    [
     "2026-11-02",
     17454
    ],
    [
     "2026-11-09",
     23057
    ],
    [
     "2026-11-16",
     28798
    ]
   ],
   "stars": [
    [
     "2026-11-25",
     1490
    ],
    [
     "2026-11-26",
     1501
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-26"
 },
 "alternatives": [
  {
   "slug": "p5-brush",
   "name": "p5.brush",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "paper-shaders",
   "name": "Paper Shaders",
   "why": "Ready moving gradients and grain textures for page backgrounds, without drawing anything yourself.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "trianglify",
   "name": "Trianglify",
   "why": "Generated low-poly triangle backgrounds as SVG or PNG, a geometric look instead of a hand-drawn one.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "npm"
  },
  {
   "slug": "react-kawaii",
   "name": "React Kawaii",
   "why": "Open source library of cute SVG illustrations delivered as React components.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  },
  {
   "slug": "free-gophers-pack",
   "name": "Free Gophers Pack",
   "why": "Pack of 100+ gopher characters, goroutines and illustrations about Go, in SVG and PNG with transparent background.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "mega-doodles-pack",
   "name": "Mega Doodles Pack",
   "why": "Over 160 hand-drawn doodle illustrations in SVG and PNG, such as clouds, stars, cats and rockets.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "Download"
  }
 ],
 "faq": [
  {
   "q": "Do I need p5.js?",
   "a": "For the main build, yes, p5.js 2.x with a WEBGL canvas. The standalone build works without p5.js in a browser with WebGL2."
  },
  {
   "q": "Can I sell art or ship an app made with it?",
   "a": "Yes. It is under the MIT license; keep the license notice with copies of the code."
  },
  {
   "q": "Can I make my own brush?",
   "a": "Yes. Add one with brush.add(), or design it in the online Brush Maker and paste the code it gives you."
  },
  {
   "q": "Why does my p5.js 1.x sketch not work with it?",
   "a": "The library needs p5.js 2.x or higher."
  }
 ],
 "at_a_glance": {
  "latest_version": "3.0.0",
  "last_release": "2026-10-28",
  "last_commit": "2026-11-21",
  "runtime": "p5.js 2.2+ for the p5 build (peer dependency); the standalone build needs a WebGL2 browser",
  "key_needed": false
 },
 "good_to_know": [
  "The p5 build needs p5.js 2.x and a WEBGL canvas; it does not work with p5.js 1.x.",
  "There are two builds. The standalone build needs no p5.js, only a browser with WebGL2, and uses its own brush.* calls.",
  "It comes with 11 brushes, from pencils and pens to pastel, crayon, charcoal, spray and marker.",
  "The README on GitHub describes the newest code; the released package can be older (3.0.0 on Nov 25, 2026), so a few documented options may be missing there."
 ],
 "stack_snippets": [],
 "claims": [],
 "checked": {
  "license_read": "2026-11-25",
  "overview_checked": "2026-11-25",
  "numbers_updated": "2026-11-26",
  "sources": [
   {
    "label": "README on GitHub",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/README.md"
   },
   {
    "label": "github.com/acamposuribe/p5.brush/blob/main/LICENSE.md",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/LICENSE.md"
   },
   {
    "label": "github.com/acamposuribe/p5.brush/blob/main/package.json",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/package.json"
   },
   {
    "label": "github.com/acamposuribe/p5.brush/blob/main/llms.txt",
    "url": "https://github.com/acamposuribe/p5.brush/blob/main/llms.txt"
   },
   {
    "label": "npm: p5.brush/latest",
    "url": "https://registry.npmjs.org/p5.brush/latest"
   },
   {
    "label": "github.com/acamposuribe/p5.brush",
    "url": "https://github.com/acamposuribe/p5.brush"
   }
  ],
  "unverified": null
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/p5-brush/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
