Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
Removed buggy brush and revised Readme
acamposuribeba95dc25d5ce
diff --git a/README.md b/README.mdindex a10ebe8..6ac6eec 100644--- a/README.md+++ b/README.md@@ -40,7 +40,7 @@ Alternatively, you can link to a `p5.brush.js` file hosted online. All versions```html<!-- Online version of p5.brush -->-<script src="https://cdn.jsdelivr.net/npm/p5.brush"></script>+<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>```### Install with NPM and other modular-based appsdiff --git a/package.json b/package.jsonindex c70947c..4ac330b 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "p5.brush",- "version": "2.0.0-beta",+ "version": "2.0.1-beta","description": "Unlock custom brushes, natural fill effects and intuitive hatching in p5.js","main": "src/index.js","module": "src/index.js",diff --git a/src/stroke/stroke.js b/src/stroke/stroke.jsindex 4f9a868..7625530 100644--- a/src/stroke/stroke.js+++ b/src/stroke/stroke.js@@ -896,21 +896,6 @@ for (let s of _standard_brushes) {add(s[0], obj);}-add("diamond", {- type: "custom",- weight: 0.78,- scatter: 0.1,- opacity: 17,- spacing: 1.3,- pressure: [1.2, 0.82],- rotate: "none",- tip: (_m) => {- _m.rotate(45);- _m.rect(-4, -4, 8, 8);- _m.rect(2, 2, 3, 3);- },-});-// ---------------------------------------------------------------------------// Extensions to Polygon and Plot Prototypes// ---------------------------------------------------------------------------@@ -1009,6 +994,7 @@ const T = {};nativeImg.onerror = () =>reject(new Error(`Failed to load image tip: ${src}`));+ nativeImg.crossOrigin = "anonymous";nativeImg.src = src;}),),